Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: nguiman on April 11, 2014, 05:48:25 PM

Title: UIGrid custom sort
Post by: nguiman on April 11, 2014, 05:48:25 PM
how do I use a custom sort for UIGrids?
Title: Re: UIGrid custom sort
Post by: ArenMook on April 12, 2014, 04:39:08 AM
Derive a script from UIGrid and override its Sort() function.
Title: Re: UIGrid custom sort
Post by: nguiman on April 16, 2014, 02:17:24 PM
so Sorting.Custom is not being used? Thanks!
Title: Re: UIGrid custom sort
Post by: ArenMook on April 17, 2014, 10:53:58 AM
"Custom" means user-defined, and you have to define it. Current version of NGUI in the pro repository has an improved grid that uses a callback instead of a derived function.
Title: Re: UIGrid custom sort
Post by: nguiman on April 29, 2014, 10:05:28 AM
thanks, i'm looking forward to using the latest version for the next game!
maybe i can import just that script