public static void Open() { StateEditorWindow window = GetWindow <StateEditorWindow>("State Editor"); window.my = (StateDataBase)AssetDatabase.LoadAssetAtPath("Assets/DataBase/Data_States.asset", typeof(StateDataBase)); window.SetStyle(); }
public static void Open(StateDataBase Content) { StateEditorWindow window = GetWindow <StateEditorWindow>("State Editor"); window.my = Content; window.SetStyle(); }