I have created a class and I want to have a reference to a non-existent static mesh component. I mean… I create a blueprint from my c++ class and then I create a static mesh component in viewport. I want to reference this new static mesh component from code.
I have tried with:
protected: UPROPERTY(EditAnywhere) UStaticMeshComponent* MeshCmpRef; and UPROPERTY(VisibleDefaultsOnly) UStaticMeshComponent* MeshCmpRef;
But I dont see the exposed variable. Where is the issue??