private void OnEnable() { // Initialize the Charcter Assets editor GUI m_GUI = new CharacterAssetEditorGUI(null, Repaint); // Make the window display the settings of the selected Character asset, even if the selection changes OnSelectionChange(); Selection.selectionChanged += OnSelectionChange; }
private void OnEnable() { // Initialize the asset's editor GUI m_GUI = new CharacterAssetEditorGUI(Target, Repaint); }