I’m using only Blueprints in my project.
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. And, what is the most interesting, GetNumChildrenComponents return actual number of child components, but not recursively, without children of child components.
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?