Seneral / Node_Editor_Framework

A flexible and modular Node Editor Framework for creating node based displays and editors in Unity
https://nodeeditor.seneral.dev
MIT License
2.01k stars 414 forks source link

Added optional node property editor to side window of NodeEditorWindow #48

Closed ScriptGeek closed 8 years ago

ScriptGeek commented 8 years ago

A custom, yet optional, node property editor displays in the side window NodeEditorWindow when the node subclass overrides the DrawNodePropertyEditor method. Just add IMGUI (immediate mode GUI) layout elements inside this method and they appear in the side window.

Example Usage:

public override void DrawNodePropertyEditor()
{
    name = GUILayout.TextField(name);    
}

Refer to Issue: https://github.com/Baste-RainGames/Node_Editor/issues/45#issuecomment-186201515