public static void RegisterEditor(MaterialEditor editor, MixtureNodeView nodeView, MixtureGraph graph) { if (mixtureDrawerInfos.ContainsKey(editor)) { mixtureDrawerInfos[editor].graph = graph; mixtureDrawerInfos[editor].nodeView = nodeView; } else { mixtureDrawerInfos[editor] = new MixtureDrawerInfo { graph = graph, nodeView = nodeView } }; }
public static void RegisterEditor(MaterialEditor editor, MixtureNodeView nodeView, MixtureGraph graph) { mixtureDrawerInfos[editor] = new MixtureDrawerInfo { graph = graph, nodeView = nodeView }; }