Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gamedivision on May 24, 2014, 04:10:08 PM

Title: Hierarchy Location [SOLVED]
Post by: gamedivision 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
Title: Re: Hierarchy Location
Post by: TrentSterling 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
Title: Re: Hierarchy Location
Post by: gamedivision 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
Title: Re: Hierarchy Location
Post by: gamedivision on May 24, 2014, 04:39:04 PM
the grid view does what i want but doesn't let me scroll through
Title: Re: Hierarchy Location
Post by: gamedivision 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