Is there something special you need to do when you change the root component of an actor? I changed the rootcomponent of my cameraclass and it changes the root component (I guess) and but it also adds another one. This is the constructor
I made a blueprint that inherits from my class and this is what I get:
asked Feb 05 '15 at 05:15 PM in C++ Programming
I had the same issue and I was just now playing with it.
I even tried to simplify it by just doing
but it didn't change anything. So what I did was got rid of the Ubox and put a normal object to the root component like a static mesh instead(maybe your camera component would work), to see what would happen, Built it (just let it hot load)and there was no double mesh(root component)!?
I put the ubox back as the root instead of the mesh and hot loaded it again.The double root appeared again but Mesh was still as the top root O.O but the bottom root object was the Ubox . I shut down my UE editor and re built and started without debugging. Lone behold no more double root!
Might have something to do with the order like creating a root AFTER you attach the code to the blueprint ect ..but i could be wrong.
All in all it just seems like an aesthetic issue/bug :)
answered Feb 05 '15 at 05:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here