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 }; }
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(); }