diff --git a/Examples/MathGraph/Editor/MathGraphEditor.cs b/Examples/MathGraph/Editor/MathGraphEditor.cs index 06cd431..7a580bf 100644 --- a/Examples/MathGraph/Editor/MathGraphEditor.cs +++ b/Examples/MathGraph/Editor/MathGraphEditor.cs @@ -8,12 +8,12 @@ namespace XNodeEditor.Examples { public class MathGraphEditor : NodeGraphEditor { /// - /// Overriding GetNodePath lets you control if and how nodes are categorized. + /// Overriding GetNodeMenuName lets you control if and how nodes are categorized. /// In this example we are sorting out all node types that are not in the XNode.Examples namespace. /// - public override string GetNodePath(System.Type type) { + public override string GetNodeMenuName(System.Type type) { if (type.Namespace == "XNode.Examples.MathNodes") { - return base.GetNodePath(type).Replace("X Node/Examples/Math Nodes/", ""); + return base.GetNodeMenuName(type).Replace("X Node/Examples/Math Nodes/", ""); } else return null; } } diff --git a/Examples/StateMachine/Editor/StateGraphEditor.cs b/Examples/StateMachine/Editor/StateGraphEditor.cs index f1b9cab..cbc810a 100644 --- a/Examples/StateMachine/Editor/StateGraphEditor.cs +++ b/Examples/StateMachine/Editor/StateGraphEditor.cs @@ -9,12 +9,12 @@ namespace XNodeEditor.Examples { public class StateGraphEditor : NodeGraphEditor { /// - /// Overriding GetNodePath lets you control if and how nodes are categorized. + /// Overriding GetNodeMenuName lets you control if and how nodes are categorized. /// In this example we are sorting out all node types that are not in the XNode.Examples namespace. /// - public override string GetNodePath(System.Type type) { + public override string GetNodeMenuName(System.Type type) { if (type.Namespace == "XNode.Examples.StateGraph") { - return base.GetNodePath(type).Replace("X Node/Examples/State Graph/", ""); + return base.GetNodeMenuName(type).Replace("X Node/Examples/State Graph/", ""); } else return null; } }