How do I change a StaticMesh's in UStaticMeshComponent without affecting the original mesh itself?

It looks like that in the constructor the components are not initialized yet so setting the material won’t work. Another solution is using PostInitializeComponents.

https://forums.unrealengine.com/t/ustaticmeshcomponent-setmaterial-working-in-beginplay-but-not-in-constructor/82128

1 Like