public override void OnInspectorGUI() { Init(); serializedObject.Update(); GUI.changed = false; EditorGUILayout.PropertyField(m_M10NDB); if (GUI.changed) { MultiLangStringDatabase db = m_M10NDB.objectReferenceValue as MultiLangStringDatabase; if (db != null) { m_M10NIndex.intValue = db.IndexOfKey(m_M10NSelectedKey.stringValue); } StringTableEditorWindow.RepaintEditor(); } DoM10NStringReferenceGUI(); EditorGUILayout.PropertyField(m_FontData); AppearanceControlsGUI(); RaycastControlsGUI(); serializedObject.ApplyModifiedProperties(); }
private void KeyListSelectionChangedCallback(int index, string key) { serializedObject.Update(); m_M10NIndex.intValue = index; m_M10NSelectedKey.stringValue = key; serializedObject.ApplyModifiedProperties(); StringTableEditorWindow.SelectItemForKey(key, true); }