Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected static T InitNodeEditor<T>( string name, NodeEditorSettings settings, TNodeGraph graph ) where T : ANodeEditor<TNodeGraph>
- {
- T customEditor = EditorWindow.GetWindow<T>( name );
- customEditor.m_settings = settings;
- customEditor.m_activeGraph = graph;
- customEditor.UpdateWindowSize();
- return customEditor;
- }
- private static void SampleShowEditor()
- {
- InitNodeEditor<SampleNodeEditorA>
- (
- "Sample Node Editor A",
- Resources.Load<NodeEditorSettings>( "SampleNodeEditorSettings" ),
- Resources.Load<SampleNodeGraph>( "SampleNodeGraphA" )
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement