playMaker

Author Topic: Get Child of Prefab saved in variable  (Read 532 times)

TurboDynamite

  • Playmaker Newbie
  • *
  • Posts: 1
Get Child of Prefab saved in variable
« on: March 15, 2021, 10:21:50 PM »
Hey everyone. I have an FSM that's trying to get a child of an object using the "Find Child" action. The issue is that the parent of the child I'm trying to find is a prefab that is instantiated and stored in a variable at runtime.

I'm pointing the action at the correct variable, and when the game is running, I can see that it has found the correct prefab instance. However, the child I'm looking for is not being found as the result variable is not populating.

I've checked using "Get Child Count" as well and the number shows 0 children, even though the prefab has children and the action is finding the correct prefab with the variable name.

Does anyone know why my prefab's children are not being found using "Find Child", "Get Child", and "Get Child Count" even though the prefab itself is being found? Any help would be appreciated!