示例#1
0
        void OnEnable()
        {
            m_StringReference = serializedObject.FindProperty("m_StringReference");
            m_FormatArguments = serializedObject.FindProperty("m_FormatArguments");
            m_UpdateString    = serializedObject.FindProperty("m_UpdateString");

            m_StringReferenceDrawer = new LocalizedStringPropertyDrawer()
            {
                ShowPreview = false
            };
        }
示例#2
0
        void OnEnable()
        {
            m_StringReference = serializedObject.FindProperty("m_StringReference");
            m_FormatArguments = serializedObject.FindProperty("m_FormatArguments");
            m_UpdateString    = serializedObject.FindProperty("m_UpdateString");

            m_StringReferenceDrawer = new LocalizedStringPropertyDrawer()
            {
                ShowPreview = false, Arguments = new UnityEngine.Localization.SmartFormat.SmartObjects()
            };
            UpdateArgumentsPreview();
        }