Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 909 Bytes

File metadata and controls

24 lines (19 loc) · 909 Bytes

XNodePluginOrder

A data-oriented sorting order plugin for xNode.
Change paths and add-node menu order without changing sourcecode. Example

Installation:

In your CustomNodeGraphEditor cs file override these functions.

	public override string GetNodeMenuName(Type type)
	{
		return XNodeEditor.XNodeOrder.GetNodeMenuName(type, base.GetNodeMenuName(type));
	}

	public override int GetNodeMenuOrder(Type type)
	{
		return XNodeEditor.XNodeOrder.GetNodeMenuOrder(type, base.GetNodeMenuOrder(type));
	}

They can be used one by themself or both at the same time.

Usage:

Create a Order ScriptableObject by rightclicking the project view and selecting Create/xNode/Order.
Sort nodes by draging them up and down the list.
Paths can be changed in the edit field. Clear the field to restore the node default value.