Exemplo n.º 1
0
 public static void texture2Inspector(UITexture2 aToggle)
 {
     if (aToggle.debug == true)
     {
         GUI.enabled = false;
         EditorGUILayout.ObjectField("Texture Component", aToggle.guiTexture, typeof(GUITexture), true);
         GUI.enabled = true;
     }
     aToggle.texture = (Texture)EditorGUILayout.ObjectField("Texture", aToggle.texture, typeof(Texture), true);
     aToggle.color = EditorGUILayout.ColorField("Color", aToggle.color);
 }
Exemplo n.º 2
0
 public static UITexture2 text2Field(string aContent, UITexture2 aToggle)
 {
     return (UITexture2)EditorGUILayout.ObjectField(aContent, aToggle, typeof(UITexture2), true);
 }