Attaching Components from Different actors.
So ive got an actor that has a mesh component attached to it. (Actor1) Ive got a second actor that also has a mesh component attached to it. (Actor2)
the second actor is spawned at runtime, and id like to attach it's mesh component to be a child of the first actors mesh.
Ive tried the following:
And indeed inside the editor i can see that the second actor appears as a child of the first: I.e:
However when i move Actor1's Mesh:
The second actors mesh simply doesnt follow it! Any hints?
asked Dec 12 '14 at 03:52 PM in C++ Programming
Do you register new mesh component to the Actor1? I think there is function inside AActor that does the registering, Look at registering component in here Beside, I really cant understand why you would like to attach a component of an actor to another component of an other actor, it seems a violation to philosophy of actor class.
answered Dec 12 '14 at 04:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here