Author Topic: How to hide sprite drawing while initializing  (Read 1534 times)

schneidb

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 2
  • Posts: 24
    • View Profile
How to hide sprite drawing while initializing
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to hide sprite drawing while initializing
« Reply #1 on: January 01, 2014, 10:17:13 PM »
Just set the checkbox sprite's alpha to 0 in the prefab.