playMaker

Author Topic: get child num is not working on folder (empty game object with childs)  (Read 1609 times)

juksawats

  • Playmaker Newbie
  • *
  • Posts: 3
Hi there

Appreciate your help as im very new to playmaker but do enjoy it a lot :D

I planned my hierarchy this way

- Main Folder (empty object, fixed name)
  - Subfolder (empty object, will be replaced time to time along with items)
    - item1
    - item2
    - item3

what im trying to do is

Get child Num from Main folder ( should return subfolder) and store it in "GV" gameobject variable
Get random child from "GV" to random items 1-3

The reason to do this is because I dont want to hardcode subfolder name into random child function since it will be replaced later from time to time with new name to match its items theme

but the problem is

Get child num from main folder just wont store subfolder into gameobject variable so i cant get random child from it

Thank in advance
« Last Edit: January 22, 2013, 06:57:36 AM by juksawats »