public static void CreateGraphOnNewGameObject(Store store, GameObject parent, bool useSelection) { var selection = Selection.gameObjects; var template = DotsGraphTemplate.ObjectGraphFromSelection(parent, useSelection ? selection : null); template.PromptToCreate(store); }
public static void CreateGraph(MenuCommand menuCommand) { var initialState = new State(null); var store = new Store(initialState); var template = DotsGraphTemplate.ObjectGraphAsset(); template.PromptToCreate(store); }
public static void CreateSubgraph(Store store) { var template = DotsGraphTemplate.SubGraphAsset(); template.PromptToCreate(store); }