I have an AMechPart class that, atm, holds a UStaticMeshComponent to hold a mesh I want to display in the game.
I have recently found UStaticMeshActor, that sounds like it will do what I want it for.
AMechPart is just basically an Item with a mesh. I’ve also recently been trying to get an ItemPickup class done in a similar way but I can’t seem to get the mesh to be displayed at all.
I tried using a UStaticMeshActor for it’s base class and setting a mesh that I know works for AMechPart, but was unable to make it become displayed in game.
Could someone show me a working example of a C++ class derived from UStaticMeshActor, that will display the assigned mesh in game?