Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PaulH on September 03, 2014, 08:44:21 PM

Title: How to reset an NGUI scroll panel and contents when activated/deactivated?
Post by: PaulH on September 03, 2014, 08:44:21 PM
hi

can anyone please tell me how i reset a ngui scroll panel and everything it contains to their original positions when activated/deactivated?

what im trying to do is have all the ngui panels deactivated then activate them when needed.

However i have store items in scroll panels that, if for instance, i scroll some items, then deactivate the panel and then reactivate it, all the buttons, labels etc etc are all messed up in the wrong positions.

i guess i would like to reset the panel to how it was at the start of the game every time its activated or deactivated.

looking on ngui forums i found this SpringPanel.Begin() or ResetContentPosition() but how do i do that/use that with playmaker please?

many thanks.

Title: Re: How to reset an NGUI scroll panel and contents when activated/deactivated?
Post by: mweyna on April 26, 2015, 08:17:27 PM
Did you ever find a way to accomplish this?