diff options
Diffstat (limited to 'Other/NodeEditorExamples/Assets/xNode-examples/Examples')
3 files changed, 32 insertions, 4 deletions
diff --git a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/MathGraph/New Math Graph.asset b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/MathGraph/New Math Graph.asset index 45efea59..e3ad295c 100644 --- a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/MathGraph/New Math Graph.asset +++ b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/MathGraph/New Math Graph.asset @@ -17,6 +17,7 @@ MonoBehaviour: - {fileID: 114067149339165002} - {fileID: 114441428018438906} - {fileID: 114775482956350040} + - {fileID: 114583718538277734} --- !u!114 &114067149339165002 MonoBehaviour: m_ObjectHideFlags: 0 @@ -120,6 +121,33 @@ MonoBehaviour: _connectionType: 1 _typeConstraint: 0 _dynamic: 0 +--- !u!114 &114583718538277734 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 98f6f901f0da53142b79277ea3f42518, type: 3} + m_Name: Display Value + m_EditorClassIdentifier: + graph: {fileID: 11400000} + position: {x: 70.31308, y: -56.076015} + ports: + keys: + - input + values: + - _fieldName: input + _node: {fileID: 114583718538277734} + _typeQualifiedName: XNode.Examples.MathNodes.DisplayValue+Anything, Assembly-CSharp, + Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + connections: [] + _direction: 0 + _connectionType: 1 + _typeConstraint: 0 + _dynamic: 0 --- !u!114 &114652361136345764 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset index 00465c33..d475d3f7 100644 --- a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset +++ b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset @@ -112,7 +112,7 @@ MonoBehaviour: m_Name: State Node m_EditorClassIdentifier: graph: {fileID: 11400000} - position: {x: -296, y: -328} + position: {x: -312, y: -376} ports: keys: - enter diff --git a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs index f9d6b9eb..6ce01956 100644 --- a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs +++ b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs @@ -8,7 +8,7 @@ namespace XNodeEditor.Examples { [CustomNodeEditor(typeof(StateNode))] public class StateNodeEditor : NodeEditor { - public override void OnHeaderGUI() { + public override void OnHeaderGUI() {
GUI.color = Color.white; StateNode node = target as StateNode; StateGraph graph = node.graph as StateGraph; @@ -19,8 +19,8 @@ namespace XNodeEditor.Examples { } public override void OnBodyGUI() { - base.OnBodyGUI(); - StateNode node = target as StateNode; + base.OnBodyGUI();
+ StateNode node = target as StateNode; StateGraph graph = node.graph as StateGraph; if (GUILayout.Button("MoveNext Node")) node.MoveNext(); if (GUILayout.Button("Continue Graph")) graph.Continue(); |