I create a character which I have attached a static mesh component. I need to create on C++ side because the code will control if the mesh is visible or not
I don’t think you can do it the way you are, or at least it will be difficult.
This is how it should be done, you create the mesh on the actor, and then initialize it in the actor’s constructor class.
Then in game you’ll see the static mesh where you can set the mesh and all of it’s transform properties, etc.