Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: schneidb on December 31, 2013, 04:21:41 PM

Title: How to hide sprite drawing while initializing
Post by: schneidb on December 31, 2013, 04:21:41 PM
I have created a GUI out of "Control - Colored Checkbox" prefabs from your Wooden Atlas example.  When the checkboxes are instantiated (or when the scene starts), they appear to have a brief "on" state, even when their "StartingState" is unchecked in the Inspector.  I have tried many different ways to overcome this, including using a parent with a UIPanel and setting the panel's alpha to 0F and then fading it back up to 1F with a coroutine.  Each approach I've tried to use either doesn't solve the problem or introduces a new problem.  Any advice for how to remedy?
Title: Re: How to hide sprite drawing while initializing
Post by: ArenMook on January 01, 2014, 10:17:13 PM
Just set the checkbox sprite's alpha to 0 in the prefab.