Download

C++ 里的staticmesh类型的数组怎么用啊

UPROPERTY(VisibleAnywhere, Category = WaveAtkClass)
TArray< TSubobjectPtr<class UStaticMesh> > MeshesToSpawn;//数组

像上面那样声明一个数组,CPP文件里应该怎样初始化呢?数组成员的添加 我想在UE的Details里操作

Declare an array like the one above, the CPP file should be how to initialize? Adds an array of member I want to operate in UE Details

SubobjectPtr好像是只能在构造函数里初始化