Пример #1
0
            public static void text3Inspector(UIText3 aToggle)
            {
                if (aToggle.debug == true)
                {
                    GUI.enabled = false;
                    EditorGUILayout.ObjectField("Text Mesh", aToggle.textMesh, typeof(TextMesh), true);
                    EditorGUILayout.ObjectField("Mesh Renderer", aToggle.meshRenderer, typeof(MeshRenderer), true);
                    EditorGUILayout.ObjectField("Material", aToggle.material, typeof(Material), true);
                    GUI.enabled = true;
                }
                string text = EditorGUILayout.TextField("Text", aToggle.text);

                    if(text != aToggle.text)
                    {
                        aToggle.textChanged();
                    }
                aToggle.text = text;
                aToggle.font = (Font)EditorGUILayout.ObjectField("Font", aToggle.font, typeof(Font), true);
                aToggle.fontSize = EditorGUILayout.IntField("Font Size", aToggle.fontSize);
                aToggle.fontStyle = (FontStyle)EditorGUILayout.EnumPopup("Font Style", aToggle.fontStyle);
                aToggle.color = EditorGUILayout.ColorField("Font Color", aToggle.color);
            }