void OnGUI()
        {
            EditorGUI.BeginChangeCheck();
            {
                text = TextArea("Text", text);
            }
            if (EditorGUI.EndChangeCheck())
            {
                resault = ArabicFixer.Process(text);
            }

            TextArea("Resault", resault);

            if (GUILayout.Button("Update Resault"))
            {
                resault = ArabicFixer.Process(text);
            }
        }
Ejemplo n.º 2
0
 void UpdateText()
 {
     Label.text = ArabicFixer.Process(text);
 }
 void OnEnable()
 {
     text    = "السلام عليكم";
     resault = ArabicFixer.Process(text);
 }