internal void CreateAndLoadAsset(string pathName) { AssetDatabase.CreateAsset(m_AssetModel as Object, AssetDatabase.GenerateUniqueAssetPath(pathName)); m_AssetModel.CreateGraph(Path.GetFileNameWithoutExtension(pathName), m_Template.StencilType); m_Template?.InitBasicGraph(m_AssetModel.GraphModel); m_CommandDispatcher?.Dispatch(new LoadGraphAssetCommand(m_AssetModel)); }
public void SetUp() { m_GraphAsset = GraphAssetCreationHelpers <TestGraphAssetModel> .CreateInMemoryGraphAsset(typeof(ClassStencil), "Test"); m_GraphAsset.CreateGraph("Graph"); }