C++ editor spawn static mesh
This is more a problem of me not knowing what to search for, and looking for the way. In C++, when I create a component and add it to an actor, at runtime everything works as expected. The problem that I am unsure of is related to the editor.
If I open an actor blueprint and add a static mesh component to it, when I change the static mesh it appears in the viewport of the blueprint. Also when that actor is placed in the level, the static mesh is visible in the level.
If I create an actor and add a static mesh component to it through code, it is created correctly and at runtime it spawns the mesh correctly. However, I do not see the mesh in the viewport, and when I place an actor in the level, the manipulator widget appears correctly, but there is no mesh. To be explicit,
My guess is there is another step, but I'm not sure what to search for to find that step. I only find pages related to creating and attaching components. Can someone point me in the right direction?
asked Apr 27 '17 at 12:12 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here