コード例 #1
0
    public void RefreshList()
    {
#if UNITY_EDITOR
        list.Clear();
        C[] array = ScriptableObjectEditorMethods.GetAllInstancesOfScriptableObjectType <C>();
        foreach (C x in array)
        {
            list.Add(x);
        }
#endif
    }
コード例 #2
0
    private static bool CheckIfOnlyInstance()
    {
        if (ScriptableObjectEditorMethods.GetNumberOfInstancesOfScriptableObjectType <T>() == 1)
        {
            return(true);
        }

        else
        {
            return(false);
        }
    }
コード例 #3
0
ファイル: OnLoadMethods.cs プロジェクト: CarlosZgierski/Whorl
 static OnLoadEditorMethods()
 {
     ScriptableObjectEditorMethods.RefreshAllMasterLists();
 }