Skip to content

NodeEditorWindow

Thor Brigsted edited this page Jan 2, 2018 · 1 revision
public class XNodeEditor.NodeEditorWindow
    : EditorWindow

Fields

Type Name Summary
NodeGraph graph

Properties

Type Name Summary
Dictionary<Node, Single> nodeWidths
Vector2 panOffset
Dictionary<NodePort, Rect> portConnectionPoints
Single zoom

Methods

Type Name Summary
void Controls()
void CreateNode(Type type, Vector2 position)
void DrawConnection(Vector2 startPoint, Vector2 endPoint, Color col)
void DrawConnections()
void DrawDraggedConnection()
void DrawGrid(Rect rect, Single zoom, Vector2 panOffset)
Vector2 GridToWindowPosition(Vector2 gridPosition)
Vector2 GridToWindowPositionNoClipped(Vector2 gridPosition)
Rect GridToWindowRect(Rect gridRect)
void Home()
void Save()
void SaveAs()
void SelectNode(Node node)
void ShowNodeContextMenu(Node node)
Vector2 WindowToGridPosition(Vector2 windowPosition)

Static Fields

Type Name Summary
NodeEditorWindow current
Vector2 dragOffset

Static Properties

Type Name Summary
Boolean isPanning
Dictionary<Type, Color> nodeTint
Type[] nodeTypes

Static Methods

Type Name Summary
void BeginZoomed(Rect rect, Single zoom)
Boolean DropdownButton(String name, Single width)
void EndZoomed(Rect rect, Single zoom)
KeyValuePair2[]` GetContextMenuMethods(Object obj)
Type[] GetDerivedTypes(Type baseType)
Dictionary<Type, Color> GetNodeTint()
Type[] GetNodeTypes()
NodeEditorWindow Init()
Object ObjectFromFieldName(Object obj, String fieldName)
Object ObjectFromType(Type type)
Boolean OnOpen(Int32 instanceID, Int32 line)
void OpenPreferences()
void RepaintAll()
Clone this wiki locally