Esempio n. 1
0
            static void ToRTL(MenuCommand command)
            {
                var label = command.context as TMP_Text;

                var text = label.text;

                var serializedObject = new SerializedObject(label);

                var script = MonoScript.Get <RTLTextMeshPro>();

                MonoScript.Set(serializedObject, script);

                var rtl = serializedObject.targetObject as RTLTextMeshPro;

                rtl.text = text;
            }