UStaticMeshComponent invisible in game
Hello, I am trying to redo an entire BP into C++ to create a more versatile Master class. However I have run into a problem. I have been able to redo everything but the components of the BP and at the moment I am struggling with getting the static mesh to work at all. I have created a simple static mesh component like this: (It's being inherited but I have editable when inherited enabled) if that matters.
Then I have replaced every time the editor made static mesh was used with my c++ made one but the static mesh wont even show up in the game. Am I missing something fundamentally or is the problem something non code related?
Hey, initialisation should be done in the constructor.
so keep this : UPROPERTY(BlueprintReadWrite, EditAnywhere) UStaticMeshComponent* StaticMesh;
and add this :
and with a rebuild you should be good :)
answered Dec 27 '18 at 04:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here