Polish Extraction Zone
作者:互联网
声明贴花组件
UPROPERTY(VisibleAnywhere, Category = "Components") UDecalComponent* DecalComp;
添加头文件
#include "Components/DecalComponent.h"
实例化该组件
DecalComp = CreateDefaultSubobject<UDecalComponent>(TEXT("DecalComp")); DecalComp->DecalSize = FVector(200.0f, 200.0f, 200.0f); DecalComp->SetupAttachment(RootComponent);
编辑材质球
在属性面板选择刚才创建的材质
调整参数后
标签:Zone,200.0,贴花,Extraction,Components,DecalComp,组件,Polish,材质 来源: https://www.cnblogs.com/suomeimei/p/10354689.html