public override void OnInspectorGUI() { DrawDefaultInspector(); Themeable myScript = target as Themeable; if (GUILayout.Button("Update Resources")) { myScript.ReloadResources(); } }
public override void OnInspectorGUI() { DrawDefaultInspector(); Themeable myScript = target as Themeable; if (GUILayout.Button("Update Resources")) { Theme currentTheme = ThemeManager.Instance.GetCurrentTheme(); myScript.ReloadResources(currentTheme); } }
public override void OnInspectorGUI() { DrawDefaultInspector(); Themeable themeable = target as Themeable; if (GUILayout.Button("Update Resources")) { themeable.ReloadResources(ThemeManager.CurrentTheme); EditorUtility.SetDirty(themeable.gameObject); } }