How can a child access its parent’s transform value?

Hey,

I currently have a parent actor class and a child from it. Upon collision, I want the child to get the value of its parent’s transform in the level and spawn something there. How would I go about doing that? I tried using the “Get Owner” into “Get Actor Transform” node in the child blueprint, but it kept giving me an error saying “Accessed none”. I have an instance of both objects in my level. Still quite new to this so I’d appreciate some help. Thanks!

Do you mean you have a child actor component in a parent actor, in which case, the answer is

image

Or do you mean a child BP you got by right-clicking and choosing ‘create child blueprint’ in the content browser?

If it’s the second, then you need to have an instance of the parent in the map as well as the child, and you would just use ‘get actor of class’ to get a handle on the parent. But in this case, there’s no special relationship between them. That’s why there’s no direct communication.

1 Like