Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Undeadpunk on August 04, 2014, 08:22:12 AM

Title: UIRoot freeze
Post by: Undeadpunk on August 04, 2014, 08:22:12 AM
Hello, i faced the folowing problem. I created menu, and when i'm pressing button, active panel should disable and another have to enable, i did it by using gameObject.SetActive(), but it makes UIPanel on UIRoot freeze on 5-7 ms as like as UICamera. What am i doing wrong?
Title: Re: UIRoot freeze
Post by: Undeadpunk on August 04, 2014, 10:00:36 AM
Nobody knows?
Title: Re: UIRoot freeze
Post by: ArenMook on August 04, 2014, 11:13:01 AM
When UI elements are enabled they have to register themselves with a panel and perform some other logic. If you have a lot of widgets, this may take some time. You can achieve the same effect by keeping your UI present and simply changing the Alpha.