{"id":47308,"date":"2025-07-30T07:17:26","date_gmt":"2025-07-29T23:17:26","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/47308.html"},"modified":"2025-07-30T07:17:26","modified_gmt":"2025-07-29T23:17:26","slug":"%e7%ac%ac20%e7%ab%a0-ue5%e5%88%9b%e5%bb%ba%e8%87%aa%e5%ae%9a%e4%b9%89%e5%9b%be%e5%bd%a2%e7%95%8c%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/47308.html","title":{"rendered":"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762"},"content":{"rendered":"<h2>\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762<\/h2>\n<p>\u56fe\u5f62\u754c\u9762\u662f\u6e38\u620f\u4e0e\u73a9\u5bb6\u4ea4\u4e92\u7684\u5173\u952e\u90e8\u5206\uff0c\u800c\u81ea\u5b9a\u4e49\u7684\u56fe\u5f62\u754c\u9762\u53ef\u4ee5\u8ba9\u6e38\u620f\u72ec\u5177\u7279\u8272\u5e76\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002\u5728UE5.2\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762\uff0c\u65e2\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684UI\u7cfb\u7edf\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5916\u90e8\u56fe\u5f62\u7f16\u8f91\u5de5\u5177\u521b\u5efa\u8d44\u6e90\u3002\u672c\u7ae0\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u4e0d\u540c\u7684\u56fe\u5f62\u5de5\u5177\u4e3aUE5.2\u6e38\u620f\u521b\u5efa\u72ec\u7279\u7684\u56fe\u5f62\u754c\u9762\u5143\u7d20\u3002<\/p>\n<h3>20.1 \u521b\u5efa\u56fe\u5f62\u7684\u666e\u904d\u89c4\u5219<\/h3>\n<p>\u5728\u521b\u5efa\u6e38\u620fUI\u56fe\u5f62\u8d44\u6e90\u65f6\uff0c\u65e0\u8bba\u4f7f\u7528\u54ea\u79cd\u5de5\u5177\uff0c\u90fd\u6709\u4e00\u4e9b\u901a\u7528\u7684\u6700\u4f73\u5b9e\u8df5\u548c\u89c4\u5219\u9700\u8981\u9075\u5faa\uff1a<\/p>\n<li>\n<p>\u5206\u8fa8\u7387\u4e0e\u5c3a\u5bf8\uff1aUI\u5143\u7d20\u5e94\u8003\u8651\u4e0d\u540c\u8bbe\u5907\u7684\u5206\u8fa8\u7387\uff0c\u7406\u60f3\u60c5\u51b5\u4e0b\u4f7f\u7528\u77e2\u91cf\u56fe\u5f62\u6216\u9ad8\u5206\u8fa8\u7387\u4f4d\u56fe\u3002\u5bf9\u4e8e\u4f4d\u56fe\uff0c\u5efa\u8bae\u4f7f\u75282\u7684\u5e42\u6b21\u65b9\u5c3a\u5bf8\uff08\u5982256\u00d7256, 512\u00d7512\u7b49\uff09\uff0c\u4ee5\u4f18\u5316\u5185\u5b58\u4f7f\u7528\u548c\u6e32\u67d3\u6027\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p>\u53ef\u6269\u5c55\u6027\uff1a\u8bbe\u8ba1UI\u5143\u7d20\u65f6\u5e94\u8003\u8651\u5176\u6269\u5c55\u6027\uff0c\u4f8b\u5982\u4f7f\u7528\u4e5d\u5bab\u683c\uff089-slice\uff09\u6280\u672f\u8bbe\u8ba1\u6309\u94ae\u548c\u9762\u677f\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u4e0d\u5931\u771f\u5730\u8c03\u6574\u5927\u5c0f\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e00\u81f4\u6027\uff1a\u4fdd\u6301\u89c6\u89c9\u98ce\u683c\u7684\u4e00\u81f4\u6027\uff0c\u5305\u62ec\u989c\u8272\u65b9\u6848\u3001\u5b57\u4f53\u3001\u7ebf\u6761\u7c97\u7ec6\u7b49\u5143\u7d20\u3002<\/p>\n<\/li>\n<li>\n<p>\u900f\u660e\u5ea6\u901a\u9053\uff1a\u5927\u591a\u6570UI\u5143\u7d20\u9700\u8981\u900f\u660e\u5ea6\u901a\u9053\uff08Alpha Channel\uff09\uff0c\u5e94\u4f7f\u7528\u652f\u6301\u900f\u660e\u5ea6\u7684\u683c\u5f0f\u5982PNG\u6216TGA\u3002<\/p>\n<\/li>\n<li>\n<p>\u6587\u4ef6\u683c\u5f0f\uff1a\u6839\u636e\u9700\u6c42\u9009\u62e9\u9002\u5f53\u7684\u6587\u4ef6\u683c\u5f0f\uff1a<\/p>\n<ul>\n<li>PNG\uff1a\u9002\u5408\u6709\u900f\u660e\u5ea6\u7684UI\u5143\u7d20<\/li>\n<li>TGA\uff1a\u652f\u6301\u9ad8\u8d28\u91cf\u900f\u660e\u5ea6\u548c\u591a\u5c42<\/li>\n<li>PSD\uff1a\u4fdd\u7559\u56fe\u5c42\u4fe1\u606f\uff0c\u4fbf\u4e8e\u540e\u671f\u7f16\u8f91<\/li>\n<li>SVG\uff1a\u77e2\u91cf\u683c\u5f0f\uff0c\u53ef\u65e0\u635f\u7f29\u653e\uff08\u9700\u8f6c\u6362\u4e3aUE\u652f\u6301\u7684\u683c\u5f0f\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7ec4\u7ec7\u7ed3\u6784\uff1a\u5408\u7406\u7ec4\u7ec7\u56fe\u5c42\u548c\u547d\u540d\uff0c\u4fbf\u4e8e\u56e2\u961f\u5408\u4f5c\u548c\u540e\u671f\u7ef4\u62a4\u3002<\/p>\n<\/li>\n<p>\u5728UE5.2\u4e2d\u5bfc\u5165\u548c\u4f7f\u7528UI\u8d44\u6e90\u7684\u57fa\u672c\u6d41\u7a0b\u662f\uff1a<\/p>\n<p>cpp<\/p>\n<p>\/\/ C++\u4e2d\u52a0\u8f7dUI\u7eb9\u7406\u7684\u793a\u4f8b<br \/>\n#include \\&#8221;Engine\/Texture2D.h\\&#8221;<\/p>\n<p>UTexture2D* LoadUITexture(const FString&amp; TexturePath)<br \/>\n{<br \/>\n    \/\/ \u540c\u6b65\u52a0\u8f7d\u7eb9\u7406\u8d44\u6e90<br \/>\n    UTexture2D* Texture = Cast&lt;UTexture2D&gt;(StaticLoadObject(UTexture2D::StaticClass(), nullptr, *TexturePath));<\/p>\n<p>    if (Texture)<br \/>\n    {<br \/>\n        \/\/ \u8bbe\u7f6eUI\u7eb9\u7406\u7684\u91c7\u6837\u6a21\u5f0f<br \/>\n        Texture-&gt;SRGB = true;  \/\/ \u4f7f\u7528sRGB\u989c\u8272\u7a7a\u95f4<br \/>\n        Texture-&gt;Filter = TF_Nearest;  \/\/ \u4f7f\u7528\u6700\u8fd1\u70b9\u91c7\u6837\uff0c\u4fdd\u6301\u50cf\u7d20\u8fb9\u7f18\u6e05\u6670<br \/>\n        Texture-&gt;AddressX = TA_Clamp;  \/\/ X\u65b9\u5411\u9650\u5236\u5bfb\u5740\u6a21\u5f0f<br \/>\n        Texture-&gt;AddressY = TA_Clamp;  \/\/ Y\u65b9\u5411\u9650\u5236\u5bfb\u5740\u6a21\u5f0f<br \/>\n        Texture-&gt;UpdateResource();  \/\/ \u66f4\u65b0\u7eb9\u7406\u8d44\u6e90<br \/>\n    }<\/p>\n<p>    return Texture;<br \/>\n}<\/p>\n<p>\u5728\u84dd\u56fe\u4e2d\u4f7f\u7528UI\u7eb9\u7406\u7684\u57fa\u672c\u65b9\u6cd5\uff1a<\/p>\n<p>swift<\/p>\n<p>\/\/ \u84dd\u56fe\u4e2d\u52a0\u8f7d\u548c\u8bbe\u7f6eUI\u7eb9\u7406<br \/>\nfunction SetupUITexture(ImageWidget, TexturePath):<br \/>\n    \/\/ \u52a0\u8f7d\u7eb9\u7406<br \/>\n    UITexture = LoadObject&lt;UTexture2D&gt;(None, TexturePath)<\/p>\n<p>    if UITexture:<br \/>\n        \/\/ \u521b\u5efa\u52a8\u6001\u6750\u8d28\u5b9e\u4f8b\u4ee5\u66f4\u597d\u5730\u63a7\u5236\u6e32\u67d3\u5c5e\u6027<br \/>\n        DynamicMaterial = CreateDynamicMaterialInstance(ImageWidget.Brush.GetResourceObject())<\/p>\n<p>        \/\/ \u8bbe\u7f6e\u7eb9\u7406\u53c2\u6570<br \/>\n        DynamicMaterial.SetTextureParameterValue(\\&#8221;UITexture\\&#8221;, UITexture)<\/p>\n<p>        \/\/ \u5e94\u7528\u5230\u56fe\u50cf\u7ec4\u4ef6<br \/>\n        ImageWidget.SetBrushFromMaterial(DynamicMaterial)<\/p>\n<p>        \/\/ \u8bbe\u7f6e\u6e32\u67d3\u5c5e\u6027<br \/>\n        ImageWidget.SetDesiredSize(Vector2D(UITexture.GetSurfaceWidth(), UITexture.GetSurfaceHeight()))<\/p>\n<p>        return true<\/p>\n<p>    return false<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u51e0\u79cd\u5e38\u7528\u7684\u56fe\u5f62\u7f16\u8f91\u5de5\u5177\uff0c\u5e76\u4e86\u89e3\u5982\u4f55\u4f7f\u7528\u5b83\u4eec\u521b\u5efaUE5.2\u7684UI\u8d44\u6e90\u3002<\/p>\n<h3>20.2 GIMP<\/h3>\n<p>GIMP (GNU Image Manipulation Program) \u662f\u4e00\u4e2a\u514d\u8d39\u5f00\u6e90\u7684\u56fe\u50cf\u7f16\u8f91\u8f6f\u4ef6\uff0c\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\uff0c\u662f\u521b\u5efa\u6e38\u620fUI\u8d44\u6e90\u7684\u4f18\u79c0\u9009\u62e9\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u9884\u7b97\u6709\u9650\u7684\u72ec\u7acb\u5f00\u53d1\u8005\u3002<\/p>\n<p>GIMP\u7684\u4e3b\u8981\u4f18\u52bf\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u514d\u8d39\u5f00\u6e90<\/li>\n<li>\u8de8\u5e73\u53f0\u652f\u6301\uff08Windows\u3001macOS\u3001Linux\uff09<\/li>\n<li>\u56fe\u5c42\u652f\u6301<\/li>\n<li>\u4e30\u5bcc\u7684\u6ee4\u955c\u548c\u6548\u679c<\/li>\n<li>\u811a\u672c\u548c\u63d2\u4ef6\u6269\u5c55\u6027<\/li>\n<li>\u652f\u6301\u591a\u79cd\u6587\u4ef6\u683c\u5f0f<\/li>\n<\/ul>\n<h4>20.2.1 \u65b0\u5efa\u56fe\u7247<\/h4>\n<p>\u5728GIMP\u4e2d\u521b\u5efa\u9002\u5408UE5.2\u7684UI\u5143\u7d20\uff0c\u9996\u5148\u9700\u8981\u8bbe\u7f6e\u6b63\u786e\u7684\u6587\u6863\u5c5e\u6027\uff1a<\/p>\n<li>\n<p>\u6253\u5f00GIMP\uff0c\u9009\u62e9\\&#8221;\u6587\u4ef6 &gt; \u65b0\u5efa\\&#8221;\u6216\u4f7f\u7528\u5feb\u6377\u952eCtrl+N<\/p>\n<\/li>\n<li>\n<p>\u5728\u65b0\u5efa\u5bf9\u8bdd\u6846\u4e2d\u8bbe\u7f6e\u4ee5\u4e0b\u53c2\u6570\uff1a<\/p>\n<ul>\n<li>\u5bbd\u5ea6\u548c\u9ad8\u5ea6\uff1a\u9009\u62e92\u7684\u5e42\u6b21\u65b9\u5c3a\u5bf8\uff0c\u5982512\u00d7512\u50cf\u7d20<\/li>\n<li>\u5206\u8fa8\u7387\uff1a\u901a\u5e38\u4e3a72 PPI\uff08\u7f51\u9875\u6807\u51c6\uff09\u621696 PPI\uff08Windows\u6807\u51c6\uff09<\/li>\n<li>\u989c\u8272\u7a7a\u95f4\uff1aRGB\u989c\u8272<\/li>\n<li>\u80cc\u666f\uff1a\u9009\u62e9\\&#8221;\u900f\u660e\\&#8221;\u4ee5\u521b\u5efa\u5e26\u6709Alpha\u901a\u9053\u7684\u56fe\u50cf<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u70b9\u51fb\\&#8221;\u786e\u5b9a\\&#8221;\u521b\u5efa\u65b0\u6587\u6863<\/p>\n<\/li>\n<p>\u5728UE5.2\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u8f85\u52a9\u7c7b\u6765\u5904\u7406GIMP\u5bfc\u51fa\u7684\u56fe\u50cf\uff1a<\/p>\n<p>cpp<\/p>\n<p>\/\/ GIMPTextureImporter.h<br \/>\n#pragma once<\/p>\n<p>#include \\&#8221;CoreMinimal.h\\&#8221;<br \/>\n#include \\&#8221;Kismet\/BlueprintFunctionLibrary.h\\&#8221;<br \/>\n#include \\&#8221;Engine\/Texture2D.h\\&#8221;<br \/>\n#include \\&#8221;GIMPTextureImporter.generated.h\\&#8221;<\/p>\n<p>\/**<br \/>\n * \u7528\u4e8e\u5904\u7406GIMP\u5bfc\u51fa\u7eb9\u7406\u7684\u529f\u80fd\u5e93<br \/>\n *\/<br \/>\nUCLASS()<br \/>\nclass MYGAME_API UGIMPTextureImporter : public UBlueprintFunctionLibrary<br \/>\n{<br \/>\n    GENERATED_BODY()<\/p>\n<p>public:<br \/>\n    \/**<br \/>\n     * \u4f18\u5316\u4eceGIMP\u5bfc\u5165\u7684UI\u7eb9\u7406<br \/>\n     * @param Texture \u8981\u4f18\u5316\u7684\u7eb9\u7406<br \/>\n     * @param bPreservePixelArt \u662f\u5426\u4fdd\u6301\u50cf\u7d20\u827a\u672f\u7684\u6e05\u6670\u8fb9\u7f18<br \/>\n     * @param bGenerateMips \u662f\u5426\u751f\u6210mipmap<br \/>\n     * @return \u4f18\u5316\u540e\u7684\u7eb9\u7406<br \/>\n     *\/<br \/>\n    UFUNCTION(BlueprintCallable, Category = \\&#8221;UI|Textures\\&#8221;)<br \/>\n    static UTexture2D* OptimizeGIMPTexture(UTexture2D* Texture, bool bPreservePixelArt = true, bool bGenerateMips = false);<\/p>\n<p>    \/**<br \/>\n     * \u4e3aGIMP\u56fe\u50cf\u521b\u5efa\u4e5d\u5bab\u683c\u7eb9\u7406<br \/>\n     * @param Texture \u6e90\u7eb9\u7406<br \/>\n     * @param BorderLeft \u5de6\u8fb9\u6846\u5bbd\u5ea6<br \/>\n     * @param BorderTop \u4e0a\u8fb9\u6846\u5bbd\u5ea6<br \/>\n     * @param BorderRight \u53f3\u8fb9\u6846\u5bbd\u5ea6<br \/>\n     * @param BorderBottom \u4e0b\u8fb9\u6846\u5bbd\u5ea6<br \/>\n     * @return \u914d\u7f6e\u4e3a\u4e5d\u5bab\u683c\u7684\u7eb9\u7406<br \/>\n     *\/<br \/>\n    UFUNCTION(BlueprintCallable, Category = \\&#8221;UI|Textures\\&#8221;)<br \/>\n    static UTexture2D* CreateNineSliceTexture(UTexture2D* Texture, int32 BorderLeft, int32 BorderTop, int32 BorderRight, int32 BorderBottom);<br \/>\n};<\/p>\n<p>\/\/ GIMPTextureImporter.cpp<br \/>\n#include \\&#8221;GIMPTextureImporter.h\\&#8221;<\/p>\n<p>UTexture2D* UGIMPTextureImporter::OptimizeGIMPTexture(UTexture2D* Texture, bool bPreservePixelArt, bool bGenerateMips)<br \/>\n{<br \/>\n    if (!Texture)<br \/>\n    {<br \/>\n        return nullptr;<br \/>\n    }<\/p>\n<p>    \/\/ \u4fee\u6539\u7eb9\u7406\u8bbe\u7f6e\u4ee5\u4f18\u5316UI\u6e32\u67d3<br \/>\n    Texture-&gt;SRGB = true;  \/\/ \u4f7f\u7528sRGB\u989c\u8272\u7a7a\u95f4\u4ee5\u6b63\u786e\u663e\u793a\u989c\u8272<\/p>\n<p>    \/\/ \u6839\u636e\u50cf\u7d20\u827a\u672f\u9009\u9879\u8bbe\u7f6e\u8fc7\u6ee4\u6a21\u5f0f<br \/>\n    Texture-&gt;Filter = bPreservePixelArt ? TF_Nearest : TF_Bilinear;<\/p>\n<p>    \/\/ \u8bbe\u7f6e\u7eb9\u7406\u5bfb\u5740\u6a21\u5f0f\u4e3a\u9650\u5236\uff0c\u907f\u514d\u8fb9\u7f18\u91cd\u590d<br \/>\n    Texture-&gt;AddressX = TA_Clamp;<br \/>\n    Texture-&gt;AddressY = TA_Clamp;<\/p>\n<p>    \/\/ \u8bbe\u7f6emipmap\u751f\u6210<br \/>\n    Texture-&gt;MipGenSettings = bGenerateMips ? TMGS_FromTextureGroup : TMGS_NoMipmaps;<\/p>\n<p>    \/\/ \u5e94\u7528\u66f4\u6539<br \/>\n    Texture-&gt;UpdateResource();<\/p>\n<p>    return Texture;<br \/>\n}<\/p>\n<p>UTexture2D* UGIMPTextureImporter::CreateNineSliceTexture(UTexture2D* Texture, int32 BorderLeft, int32 BorderTop, int32 BorderRight, int32 BorderBottom)<br \/>\n{<br \/>\n    if (!Texture)<br \/>\n    {<br \/>\n        return nullptr;<br \/>\n    }<\/p>\n<p>    \/\/ \u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5e26\u6709\u4e5d\u5bab\u683c\u4fe1\u606f\u7684\u7eb9\u7406<br \/>\n    UTexture2D* NineSliceTexture = DuplicateObject&lt;UTexture2D&gt;(Texture, nullptr);<\/p>\n<p>    \/\/ \u8bbe\u7f6e\u4e5d\u5bab\u683c\u8fb9\u754c\u503c<br \/>\n    NineSliceTexture-&gt;NineSliceBorder.Left = BorderLeft;<br \/>\n    NineSliceTexture-&gt;NineSliceBorder.Top = BorderTop;<br \/>\n    NineSliceTexture-&gt;NineSliceBorder.Right = BorderRight;<br \/>\n    NineSliceTexture-&gt;NineSliceBorder.Bottom = BorderBottom;<\/p>\n<p>    \/\/ \u6807\u8bb0\u4e3a\u4f7f\u7528\u4e5d\u5bab\u683c<br \/>\n    NineSliceTexture-&gt;bNineSliceBorderSupport = true;<\/p>\n<p>    \/\/ \u5e94\u7528\u66f4\u6539<br \/>\n    NineSliceTexture-&gt;UpdateResource();<\/p>\n<p>    return NineSliceTexture;<br \/>\n}<\/p>\n<h4>20.2.2 \u6dfb\u52a0\u56fe\u5f62\u7ec4\u4ef6<\/h4>\n<p>\u5728GIMP\u4e2d\u8bbe\u8ba1UI\u5143\u7d20\u65f6\uff0c\u5408\u7406\u4f7f\u7528\u56fe\u5c42\u548c\u7ec4\u4ef6\u53ef\u4ee5\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u5e76\u4fdd\u6301\u8bbe\u8ba1\u7075\u6d3b\u6027\uff1a<\/p>\n<li>\u56fe\u5c42\u521b\u5efa\uff1a\u4f7f\u7528\\&#8221;\u56fe\u5c42 &gt; \u65b0\u5efa\u56fe\u5c42\\&#8221;\u6216\u6309\u5feb\u6377\u952eShift+Ctrl+N\u521b\u5efa\u65b0\u56fe\u5c42<\/li>\n<li>\u56fe\u5c42\u7ec4\uff1a\u5c06\u76f8\u5173\u56fe\u5c42\u7ec4\u7ec7\u5230\u56fe\u5c42\u7ec4\u4e2d\uff0c\u65b9\u4fbf\u7ba1\u7406<\/li>\n<li>\u56fe\u5f62\u5143\u7d20\u5236\u4f5c\uff1a\n<ul>\n<li>\u4f7f\u7528\u5f62\u72b6\u5de5\u5177\u521b\u5efa\u57fa\u672c\u5f62\u72b6\uff08\u77e9\u5f62\u3001\u5706\u5f62\u7b49\uff09<\/li>\n<li>\u4f7f\u7528\u753b\u7b14\u548c\u94c5\u7b14\u5de5\u5177\u624b\u7ed8\u5143\u7d20<\/li>\n<li>\u4f7f\u7528\u6e10\u53d8\u5de5\u5177\u521b\u5efa\u5e73\u6ed1\u8fc7\u6e21\u6548\u679c<\/li>\n<li>\u4f7f\u7528\u6587\u5b57\u5de5\u5177\u6dfb\u52a0\u6587\u672c\u5143\u7d20<\/li>\n<\/ul>\n<\/li>\n<p>\u5bf9\u4e8e\u6e38\u620fUI\uff0c\u901a\u5e38\u9700\u8981\u521b\u5efa\u8fd9\u4e9b\u7ec4\u4ef6\uff1a<\/p>\n<ul>\n<li>\u6309\u94ae\uff08\u6b63\u5e38\u3001\u60ac\u505c\u3001\u6309\u4e0b\u3001\u7981\u7528\u72b6\u6001\uff09<\/li>\n<li>\u9762\u677f\u80cc\u666f<\/li>\n<li>\u56fe\u6807<\/li>\n<li>\u8fdb\u5ea6\u6761<\/li>\n<li>\u6846\u67b6\u548c\u88c5\u9970\u5143\u7d20<\/li>\n<\/ul>\n<p>\u5728UE5.2\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u7ec4\u4ef6\u521b\u5efa\u5b8c\u6574\u7684UI\uff1a<\/p>\n<p>cpp<\/p>\n<p>\/\/ UIComponentLibrary.h<br \/>\n#pragma once<\/p>\n<p>#include \\&#8221;CoreMinimal.h\\&#8221;<br \/>\n#include \\&#8221;Kismet\/BlueprintFunctionLibrary.h\\&#8221;<br \/>\n#include \\&#8221;Engine\/Texture2D.h\\&#8221;<br \/>\n#include \\&#8221;Components\/Button.h\\&#8221;<br \/>\n#include \\&#8221;Components\/Image.h\\&#8221;<br \/>\n#include \\&#8221;Components\/ProgressBar.h\\&#8221;<br \/>\n#include \\&#8221;UIComponentLibrary.generated.h\\&#8221;<\/p>\n<p>\/**<br \/>\n * UI\u7ec4\u4ef6\u5e93\uff0c\u7528\u4e8e\u521b\u5efa\u57fa\u4e8eGIMP\u56fe\u50cf\u7684UI\u5143\u7d20<br \/>\n *\/<br \/>\nUCLASS()<br \/>\nclass MYGAME_API UUIComponentLibrary : public UBlueprintFunctionLibrary<br \/>\n{<br \/>\n    GENERATED_BODY()<\/p>\n<p>public:<br \/>\n    \/**<br \/>\n     * \u4f7f\u7528GIMP\u521b\u5efa\u7684\u56fe\u50cf\u8bbe\u7f6e\u6309\u94ae\u72b6\u6001<br \/>\n     * @param Button \u8981\u8bbe\u7f6e\u7684\u6309\u94ae<br \/>\n     * @param NormalTexture \u6b63\u5e38\u72b6\u6001\u7eb9\u7406<br \/>\n     * @param HoveredTexture \u60ac\u505c\u72b6\u6001\u7eb9\u7406<br \/>\n     * @param PressedTexture \u6309\u4e0b\u72b6\u6001\u7eb9\u7406<br \/>\n     * @param DisabledTexture \u7981\u7528\u72b6\u6001\u7eb9\u7406<br \/>\n     *\/<br \/>\n    UFUNCTION(BlueprintCallable, Category = \\&#8221;UI|Components\\&#8221;)<br \/>\n    static void SetupButtonWithGIMPTextures(UButton* Button, UTexture2D* NormalTexture, UTexture2D* HoveredTexture,<br \/>\n                                          UTexture2D* PressedTexture, UTexture2D* DisabledTexture);<\/p>\n<p>    \/**<br \/>\n     * \u521b\u5efa\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761<br \/>\n     * @param ProgressBar \u8981\u8bbe\u7f6e\u7684\u8fdb\u5ea6\u6761<br \/>\n     * @param BackgroundTexture \u80cc\u666f\u7eb9\u7406<br \/>\n     * @param FillTexture \u586b\u5145\u7eb9\u7406<br \/>\n     * @param FillColorOverride \u586b\u5145\u989c\u8272\u8986\u76d6<br \/>\n     *\/<br \/>\n    UFUNCTION(BlueprintCallable, Category = \\&#8221;UI|Components\\&#8221;)<br \/>\n    static void SetupCustomProgressBar(UProgressBar* ProgressBar, UTexture2D* BackgroundTexture, UTexture2D* FillTexture,<br \/>\n                                    const FLinearColor&amp; FillColorOverride);<br \/>\n};<\/p>\n<p>\/\/ UIComponentLibrary.cpp<br \/>\n#include \\&#8221;UIComponentLibrary.h\\&#8221;<br \/>\n#include \\&#8221;Materials\/MaterialInstanceDynamic.h\\&#8221;<\/p>\n<p>void UUIComponentLibrary::SetupButtonWithGIMPTextures(UButton* Button, UTexture2D* NormalTexture, UTexture2D* HoveredTexture,<br \/>\n                                                    UTexture2D* PressedTexture, UTexture2D* DisabledTexture)<br \/>\n{<br \/>\n    if (!Button)<br \/>\n    {<br \/>\n        return;<br \/>\n    }<\/p>\n<p>    \/\/ \u8bbe\u7f6e\u6309\u94ae\u6837\u5f0f<br \/>\n    FButtonStyle ButtonStyle = Button-&gt;GetStyle();<\/p>\n<p>    \/\/ \u8bbe\u7f6e\u4e0d\u540c\u72b6\u6001\u7684\u56fe\u50cf<br \/>\n    if (NormalTexture)<br \/>\n    {<br \/>\n        FSlateBrush NormalBrush;<br \/>\n        NormalBrush.SetResourceObject(NormalTexture);<br \/>\n        NormalBrush.ImageSize = FVector2D(NormalTexture-&gt;GetSurfaceWidth(), NormalTexture-&gt;GetSurfaceHeight());<br \/>\n        ButtonStyle.Normal = NormalBrush;<br \/>\n    }<\/p>\n<p>    if (HoveredTexture)<br \/>\n    {<br \/>\n        FSlateBrush HoveredBrush;<br \/>\n        HoveredBrush.SetResourceObject(HoveredTexture);<br \/>\n        HoveredBrush.ImageSize = FVector2D(HoveredTexture-&gt;GetSurfaceWidth(), HoveredTexture-&gt;GetSurfaceHeight());<br \/>\n        ButtonStyle.Hovered = HoveredBrush;<br \/>\n    }<\/p>\n<p>    if (PressedTexture)<br \/>\n    {<br \/>\n        FSlateBrush PressedBrush;<br \/>\n        PressedBrush.SetResourceObject(PressedTexture);<br \/>\n        PressedBrush.ImageSize = FVector2D(PressedTexture-&gt;GetSurfaceWidth(), PressedTexture-&gt;GetSurfaceHeight());<br \/>\n        ButtonStyle.Pressed = PressedBrush;<br \/>\n    }<\/p>\n<p>    if (DisabledTexture)<br \/>\n    {<br \/>\n        FSlateBrush DisabledBrush;<br \/>\n        DisabledBrush.Set<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e40\u6b21\uff0c\u6536\u85cf35\u6b21\u3002\u300aUE5.2\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u6307\u5357\u300b\u6458\u8981\uff1a\u672c\u7ae0\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Unreal Engine 5.2\u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u6e38\u620fUI\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1. UI\u8bbe\u8ba1\u901a\u7528\u89c4\u8303\uff1a\u5f3a\u8c032\u7684\u5e42\u6b21\u65b9\u5c3a\u5bf8\u3001\u77e2\u91cf\u56fe\u5f62\u3001\u4e5d\u5bab\u683c\u6280\u672f\u7b49\u6838\u5fc3\u539f\u5219\uff1b2. \u4e09\u5927\u5de5\u5177\u5b9e\u64cd\uff1a\u5206\u522b\u8bb2\u89e3GIMP\uff08\u5f00\u6e90\u65b9\u6848\uff09\u3001Photoshop\uff08\u4e13\u4e1a\u65b9\u6848\uff09\u548cPaintShop Pro\uff08\u5e73\u4ef7\u65b9\u6848\uff09\u7684\u5177\u4f53\u5de5\u4f5c\u6d41\u7a0b\uff1b3. \u6280\u672f\u5b9e\u73b0\uff1a\u63d0\u4f9bC++\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u7eb9\u7406\u52a0\u8f7d\u3001\u6750\u8d28\u521b\u5efa\u548cUI\u7ec4\u4ef6\u642d\u5efa\uff1b4. \u95ee\u9898\u6392\u67e5\uff1a\u7cfb\u7edf\u5206\u6790&quot;\u6309\u94ae\u4e0d\u663e\u793a&quot;\u548c&quot;\u7eff\u8272\u65b9\u5757&quot;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,1389,3417,190],"topic":[],"class_list":["post-47308","post","type-post","status-publish","format-standard","hentry","category-server","tag-java","tag-mmorpg","tag-ue5","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/47308.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e40\u6b21\uff0c\u6536\u85cf35\u6b21\u3002\u300aUE5.2\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u6307\u5357\u300b\u6458\u8981\uff1a\u672c\u7ae0\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Unreal Engine 5.2\u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u6e38\u620fUI\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1. UI\u8bbe\u8ba1\u901a\u7528\u89c4\u8303\uff1a\u5f3a\u8c032\u7684\u5e42\u6b21\u65b9\u5c3a\u5bf8\u3001\u77e2\u91cf\u56fe\u5f62\u3001\u4e5d\u5bab\u683c\u6280\u672f\u7b49\u6838\u5fc3\u539f\u5219\uff1b2. \u4e09\u5927\u5de5\u5177\u5b9e\u64cd\uff1a\u5206\u522b\u8bb2\u89e3GIMP\uff08\u5f00\u6e90\u65b9\u6848\uff09\u3001Photoshop\uff08\u4e13\u4e1a\u65b9\u6848\uff09\u548cPaintShop Pro\uff08\u5e73\u4ef7\u65b9\u6848\uff09\u7684\u5177\u4f53\u5de5\u4f5c\u6d41\u7a0b\uff1b3. \u6280\u672f\u5b9e\u73b0\uff1a\u63d0\u4f9bC++\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u7eb9\u7406\u52a0\u8f7d\u3001\u6750\u8d28\u521b\u5efa\u548cUI\u7ec4\u4ef6\u642d\u5efa\uff1b4. \u95ee\u9898\u6392\u67e5\uff1a\u7cfb\u7edf\u5206\u6790&quot;\u6309\u94ae\u4e0d\u663e\u793a&quot;\u548c&quot;\u7eff\u8272\u65b9\u5757&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/47308.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T23:17:26+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47308.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/47308.html\",\"name\":\"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T23:17:26+00:00\",\"dateModified\":\"2025-07-29T23:17:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/47308.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/47308.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47308.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/47308.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.6k\u6b21\uff0c\u70b9\u8d5e40\u6b21\uff0c\u6536\u85cf35\u6b21\u3002\u300aUE5.2\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762\u5f00\u53d1\u6307\u5357\u300b\u6458\u8981\uff1a\u672c\u7ae0\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5728Unreal Engine 5.2\u4e2d\u521b\u5efa\u81ea\u5b9a\u4e49\u6e38\u620fUI\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1. UI\u8bbe\u8ba1\u901a\u7528\u89c4\u8303\uff1a\u5f3a\u8c032\u7684\u5e42\u6b21\u65b9\u5c3a\u5bf8\u3001\u77e2\u91cf\u56fe\u5f62\u3001\u4e5d\u5bab\u683c\u6280\u672f\u7b49\u6838\u5fc3\u539f\u5219\uff1b2. \u4e09\u5927\u5de5\u5177\u5b9e\u64cd\uff1a\u5206\u522b\u8bb2\u89e3GIMP\uff08\u5f00\u6e90\u65b9\u6848\uff09\u3001Photoshop\uff08\u4e13\u4e1a\u65b9\u6848\uff09\u548cPaintShop Pro\uff08\u5e73\u4ef7\u65b9\u6848\uff09\u7684\u5177\u4f53\u5de5\u4f5c\u6d41\u7a0b\uff1b3. \u6280\u672f\u5b9e\u73b0\uff1a\u63d0\u4f9bC++\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u7eb9\u7406\u52a0\u8f7d\u3001\u6750\u8d28\u521b\u5efa\u548cUI\u7ec4\u4ef6\u642d\u5efa\uff1b4. \u95ee\u9898\u6392\u67e5\uff1a\u7cfb\u7edf\u5206\u6790&quot;\u6309\u94ae\u4e0d\u663e\u793a&quot;\u548c&quot;\u7eff\u8272\u65b9\u5757&quot;","og_url":"https:\/\/www.wsisp.com\/helps\/47308.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T23:17:26+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/47308.html","url":"https:\/\/www.wsisp.com\/helps\/47308.html","name":"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T23:17:26+00:00","dateModified":"2025-07-29T23:17:26+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/47308.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/47308.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/47308.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7b2c20\u7ae0 UE5\u521b\u5efa\u81ea\u5b9a\u4e49\u56fe\u5f62\u754c\u9762"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=47308"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47308\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=47308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=47308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=47308"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=47308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}