mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
added namespaces
This commit is contained in:
parent
1e8f2b081c
commit
ca86007745
@ -7,11 +7,12 @@ using UnityEngine;
|
|||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
|
||||||
using XNode;
|
using XNode;
|
||||||
using XNodeEditor;
|
|
||||||
|
|
||||||
[CustomEditor(typeof(XNode.NodeGraph), true)]
|
namespace XNodeEditor
|
||||||
public class NodeGraphInspector : Editor
|
|
||||||
{
|
{
|
||||||
|
[CustomEditor(typeof(XNode.NodeGraph), true)]
|
||||||
|
public class NodeGraphInspector : Editor
|
||||||
|
{
|
||||||
SerializedProperty nodesProp;
|
SerializedProperty nodesProp;
|
||||||
SerializedProperty variablesProp;
|
SerializedProperty variablesProp;
|
||||||
|
|
||||||
@ -154,4 +155,5 @@ public class NodeGraphInspector : Editor
|
|||||||
|
|
||||||
GUILayout.EndHorizontal();
|
GUILayout.EndHorizontal();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,8 +5,12 @@ using UnityEditor;
|
|||||||
|
|
||||||
using XNode;
|
using XNode;
|
||||||
|
|
||||||
[CustomEditor(typeof(Node), true)]
|
namespace XNodeEditor
|
||||||
public class NodeInspector : Editor
|
|
||||||
{
|
{
|
||||||
|
[CustomEditor(typeof(Node), true)]
|
||||||
|
public class NodeInspector : Editor
|
||||||
|
{
|
||||||
public override void OnInspectorGUI() { /*hides unneeded info*/ }
|
public override void OnInspectorGUI() { /*hides unneeded info*/ }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,9 +2,11 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
[System.Serializable]
|
namespace XNode
|
||||||
public class Variable
|
|
||||||
{
|
{
|
||||||
|
[System.Serializable]
|
||||||
|
public class Variable
|
||||||
|
{
|
||||||
public string id;
|
public string id;
|
||||||
public string typeString;
|
public string typeString;
|
||||||
public System.Type type
|
public System.Type type
|
||||||
@ -49,4 +51,5 @@ public class Variable
|
|||||||
id = "new_variable";
|
id = "new_variable";
|
||||||
typeString = typeof(float).AssemblyQualifiedName;
|
typeString = typeof(float).AssemblyQualifiedName;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user