What is the relationship here? and how do i access the "child"?

I am trying to access the “BP_Door” within this other BP instance (that sits within another object):slight_smile:

image

And i cannot - for the life of me - find it…

GetAllChildActors doesn’t work - it doesn’t appear in the child components…like what the???

1 Like

FWIW i can find the BP_Doors - but not if i try to look in the children of the BP_UDP - only if i go through the whole list of children in the grandparent object…AND it seems to have literally no knowledge of the BP_UDP containing it - though if i move them in the viewport (like in the UE Editor) they are linked parent to child as you would expect - but in game they seem to lose this connection…

Interestingly if I do this:

it finds the children of the child (grandchildren) but not the direct child…

so it finds the door leaves but not the door containing the door leaves…

Is this a bug in UE?

1 Like

First of all, This is not a bug.

To solve this you have to attach actors at BeginPlay and during this you have to use AttachToActor or AttachToComponent. Ore you have the option to store explicit references in the parent actor.

So if i associate a child in a grandparent BP it basically does not register the parent/child relationship between the child of the grandparent and the child of the child? I have to do it manually?

Feels like a bug to me :stuck_out_tongue:

1 Like

Yes. But coz Editor attachment does not create a real parent child relationship between actors.

And if you want to add logic level relationships, then you definitly have to set them manually at runtime or at store reference. So therefore, it is intended behavior, not a bug.

Crap behaviour then - may as well just have no relationship in the editor at all

Just feels weird (and extremely buggy) that this works:

in terms of the BP_UDPs being associated as children with the parent fine - but anything inside those BP_UDPs does not associate the parent / child relationship…like why would it work that way?

It seems to wilfully skip a generation…