playMaker

Author Topic: Hierarchy Location [SOLVED]  (Read 2538 times)

gamedivision

  • Full Member
  • ***
  • Posts: 227
Hierarchy Location [SOLVED]
« on: May 24, 2014, 04:10:08 PM »
im using create object (its an ngui label) in my scene but i need to control where its created within my hierarchy
anyway of doing this


thanks
« Last Edit: May 25, 2014, 06:14:36 PM by Alex Chouls »

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Hierarchy Location
« Reply #1 on: May 24, 2014, 04:21:33 PM »
I made the mistake of trying the default create object and set parent actions on ngui elements.

Long story short- download the ngui actions for playmaker and use the nguitools.addchild action. Otherwise you get a stupid amount of weirdness like sizes going nuts and offsets not working. (I was adding buttons to a scrollview grid. It was not working right at-freakin-all)

So use the package here:
https://hutonggames.fogbugz.com/?W1111

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Hierarchy Location
« Reply #2 on: May 24, 2014, 04:35:11 PM »
ohh thank you your a star,is there anyway of adding labels to a scroll view were it will automatically rearrange the labels in order because the only other way would be to register the position of the last item them reposition the new with variables

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Hierarchy Location
« Reply #3 on: May 24, 2014, 04:39:04 PM »
the grid view does what i want but doesn't let me scroll through

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Hierarchy Location
« Reply #4 on: May 24, 2014, 04:57:16 PM »
i sorted it i just added the grid view script to the scroll view everytime i  add a new label at runtime it automatically positions it