Exemple #1
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();
            tmpro = (RTLTextMeshPro3D)target;

            EditorGUILayout.Space();
            EditorGUI.BeginChangeCheck();
            EditorGUILayout.PropertyField(originalTextProp, new GUIContent("RTL Text Input Box"));

            ListenForZeroWidthNoJoiner();

            if (EditorGUI.EndChangeCheck())
            {
                inputSourceProp.enumValueIndex      = 0;
                isInputPasingRequiredProp.boolValue = true;
                changed = true;
            }

            if (changed)
            {
                OnChanged();
            }

            serializedObject.ApplyModifiedProperties();

            base.OnInspectorGUI();

            foldout = EditorGUILayout.Foldout(foldout, "RTL Settings", TMP_UIStyleManager.boldFoldout);
            if (foldout)
            {
                DrawOptions();

                if (GUILayout.Button("Re-Fix"))
                {
                    changed = true;
                }

                if (EditorGUI.EndChangeCheck())
                {
                    changed = true;
                }
            }

            if (changed)
            {
                OnChanged();
            }
        }