Ejemplo n.º 1
0
 public static UITexture3 text2Field(string aContent, UITexture3 aToggle)
 {
     return (UITexture3)EditorGUILayout.ObjectField(aContent, aToggle, typeof(UITexture3), true);
 }
Ejemplo n.º 2
0
            public static void texture3Inspector(UITexture3 aToggle)
            {
                if (aToggle.debug == true)
                {
                    GUI.enabled = false;
                    EditorGUILayout.ObjectField("Mesh Filter", aToggle.meshFilter, typeof(MeshFilter), true);
                    EditorGUILayout.ObjectField("Mesh Renderer", aToggle.meshRenderer, typeof(MeshRenderer), true);
                    GUI.enabled = true;
                }

                aToggle.color = EditorGUILayout.ColorField("Color", aToggle.color);
                aToggle.texture = (Texture)EditorGUILayout.ObjectField("Texture", aToggle.texture, typeof(Texture), true);
            }