topical media & game development

talk show tell print

lib-unity-demo-shadow-Assets--Scripts-ShadowUI.js / js



  var lights : Light[];
  
  function OnGUI()
  {
          GUILayout.BeginArea( Rect( 2, Screen.height-130, 150, 128 ), "Settings", GUI.skin.window  );
          for( var l in lights )
          {
                  l.enabled = GUILayout.Toggle( l.enabled, l.name );
          }
          GUILayout.EndArea();
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.