// This function is called when the object is loaded private void OnEnable() { // Get the scriptable object of the project containing all tags and load them reference = MultiTagsUtility.GetTagsAsset(); // Creates editor for the reference referenceEditor = (TagsEditor)Editor.CreateEditor(reference); }
// This function is called when the object is loaded private void OnEnable() { // If no target, return if (!target) { return; } // Get editing object tagsSO = (TagsSO)target; }