Static mesh component not showing up on spawned actor

chase98999
Fri, 18 Jun 2021 01:56:37 +0000
Asset Creation

I have a custom actor class called “BlackHole”, which is supposed to spawn a new actor of class “DarkMatter” after being in existence for 5 seconds. For some reason, when my black hole actor spawns my dark matter actor, the dark matter static mesh I have selected does not show up in-editor. However, I can see that the dark matter has indeed spawned (according to the world outliner). I’ve been trying to figure this out for days with no success, why is the static mesh component not showing up? Any help is appreciated, thank you.

BlackHole.h:

BlackHole.cpp:

DarkMatter.h:

DarkMatter.cpp:

This is the relevant code for the spawning implementation, mostly just the CreateDarkMatter function in BlackHole.cpp.

3 posts - 1 participant