I have the BPI_Translucent interface with one function SetTranslucency, which receives boolean parameter with new value of actor translucency and returns boolean Success.
You can see the implementation of this function in one of my blueprints, which implements this interface
The problem is that call to GetChildrenComponents of Floor Static Mesh Component return 1 or even 0 child components, but actually it isn’t
I’ve put all this nodes in another function inside my blueprint and it works, GetChildreComponents returns all children. It also works if I just call this function inside the implementation of SetTranslucency interface function.
So, why does the GetChildrenComponents function return not all child components when it is called inside the interface function implementation? And how can I fix it?
I’ve tried “include all descendants”. This function I called on Trigger Begin/End Overlap.
And, what is the most interesting, GetNumChildrenComponents return actual number of child components, but not recursively, without children of child components.
The code is fully workable)
I’ve put all this nodes in another function MySetTranslucency inside my blueprint and it works, GetChildreComponents returns all children. It also works if I just call MySetTranslucency inside the implementation of SetTranslucency interface function. It’s a strange problem related to behavior of GetChildrenComponents in interface function implementation…
Sorry for my carelessness! I connected SetCollisionResponseInChannel nodes to Return Node in loop body. So, after first loop iteration it calls the return node. The topic can be closed!