Example #1
0
    static void Init()
    {
        //Warning if I don't use this to instantiate
        NodeEditor _nodeEdit = ScriptableObject.CreateInstance <NodeEditor>();

        //Old method, got warning
        //NodeEditor _nodeEdit = new NodeEditor();
        //instance = _nodeEdit;
        _nodeEdit.CreateWindowAndLoad();
    }