public void RefreshList() { #if UNITY_EDITOR list.Clear(); C[] array = ScriptableObjectEditorMethods.GetAllInstancesOfScriptableObjectType <C>(); foreach (C x in array) { list.Add(x); } #endif }
private static bool CheckIfOnlyInstance() { if (ScriptableObjectEditorMethods.GetNumberOfInstancesOfScriptableObjectType <T>() == 1) { return(true); } else { return(false); } }
static OnLoadEditorMethods() { ScriptableObjectEditorMethods.RefreshAllMasterLists(); }