diff --git a/Examples.meta b/Example.meta similarity index 100% rename from Examples.meta rename to Example.meta diff --git a/Examples/NodeToy/NodeGraphExample.cs b/Example/ExampleNodeGraph.cs similarity index 63% rename from Examples/NodeToy/NodeGraphExample.cs rename to Example/ExampleNodeGraph.cs index 0d38514..8b6f750 100644 --- a/Examples/NodeToy/NodeGraphExample.cs +++ b/Example/ExampleNodeGraph.cs @@ -3,6 +3,6 @@ using System.Collections.Generic; using UnityEngine; using System; /// Defines an example nodegraph. -[Serializable, CreateAssetMenu(fileName = "NodeGraphExample", menuName = "Node Graph/Example")] -public class NodeGraphExample : NodeGraph { +[Serializable, CreateAssetMenu(fileName = "ExampleNodeGraph", menuName = "Node Graph/Example")] +public class ExampleNodeGraph : NodeGraph { } diff --git a/Examples/NodeToy/NodeGraphExample.cs.meta b/Example/ExampleNodeGraph.cs.meta similarity index 100% rename from Examples/NodeToy/NodeGraphExample.cs.meta rename to Example/ExampleNodeGraph.cs.meta diff --git a/Examples/Nodes.meta b/Example/Nodes.meta similarity index 100% rename from Examples/Nodes.meta rename to Example/Nodes.meta diff --git a/Examples/Nodes/BaseNode.cs b/Example/Nodes/BaseNode.cs similarity index 95% rename from Examples/Nodes/BaseNode.cs rename to Example/Nodes/BaseNode.cs index d7ceb3e..26d4a8d 100644 --- a/Examples/Nodes/BaseNode.cs +++ b/Example/Nodes/BaseNode.cs @@ -1,15 +1,15 @@ -using UnityEngine; - -[System.Serializable] -public class BaseNode : Node { - - [Input] public string input; - [Output] public string output; - public bool concat; - [TextArea] - public string SomeString; - [Header("New stuff")] - public Color col; - public AnimationCurve anim; - public Vector3 vec; -} +using UnityEngine; + +[System.Serializable] +public class BaseNode : Node { + + [Input] public string input; + [Output] public string output; + public bool concat; + [TextArea] + public string SomeString; + [Header("New stuff")] + public Color col; + public AnimationCurve anim; + public Vector3 vec; +} diff --git a/Examples/Nodes/BaseNode.cs.meta b/Example/Nodes/BaseNode.cs.meta similarity index 100% rename from Examples/Nodes/BaseNode.cs.meta rename to Example/Nodes/BaseNode.cs.meta diff --git a/Examples/Nodes/Editor.meta b/Example/Nodes/Editor.meta similarity index 100% rename from Examples/Nodes/Editor.meta rename to Example/Nodes/Editor.meta diff --git a/Examples/Nodes/Editor/MathNodeEditor.cs b/Example/Nodes/Editor/MathNodeEditor.cs similarity index 96% rename from Examples/Nodes/Editor/MathNodeEditor.cs rename to Example/Nodes/Editor/MathNodeEditor.cs index 1cca50a..bac5a65 100644 --- a/Examples/Nodes/Editor/MathNodeEditor.cs +++ b/Example/Nodes/Editor/MathNodeEditor.cs @@ -1,10 +1,10 @@ -using System.Collections.Generic; -using UnityEngine; - -[CustomNodeEditor(typeof(MathNode), "Math")] -public class AddNodeEditor : NodeEditor { - - public override void OnNodeGUI(out Dictionary portPositions) { - base.OnNodeGUI(out portPositions); - } -} +using System.Collections.Generic; +using UnityEngine; + +[CustomNodeEditor(typeof(MathNode), "Math")] +public class AddNodeEditor : NodeEditor { + + public override void OnNodeGUI(out Dictionary portPositions) { + base.OnNodeGUI(out portPositions); + } +} diff --git a/Examples/Nodes/Editor/MathNodeEditor.cs.meta b/Example/Nodes/Editor/MathNodeEditor.cs.meta similarity index 100% rename from Examples/Nodes/Editor/MathNodeEditor.cs.meta rename to Example/Nodes/Editor/MathNodeEditor.cs.meta diff --git a/Examples/Nodes/MathNode.cs b/Example/Nodes/MathNode.cs similarity index 95% rename from Examples/Nodes/MathNode.cs rename to Example/Nodes/MathNode.cs index 175197d..b9a9d27 100644 --- a/Examples/Nodes/MathNode.cs +++ b/Example/Nodes/MathNode.cs @@ -1,18 +1,18 @@ -using UnityEngine; - -[System.Serializable] -public class MathNode : Node { - [Input] public float a; - [Input] public float b; - [Output] public float result; - public enum MathType { Add, Subtract, Multiply, Divide} - public MathType mathType = MathType.Add; - - protected override void Init() { - name = "Math"; - } - - public override void OnCreateConnection(NodePort from, NodePort to) { - - } -} +using UnityEngine; + +[System.Serializable] +public class MathNode : Node { + [Input] public float a; + [Input] public float b; + [Output] public float result; + public enum MathType { Add, Subtract, Multiply, Divide} + public MathType mathType = MathType.Add; + + protected override void Init() { + name = "Math"; + } + + public override void OnCreateConnection(NodePort from, NodePort to) { + + } +} diff --git a/Examples/Nodes/MathNode.cs.meta b/Example/Nodes/MathNode.cs.meta similarity index 100% rename from Examples/Nodes/MathNode.cs.meta rename to Example/Nodes/MathNode.cs.meta diff --git a/Examples/NodeToy.meta b/Examples/NodeToy.meta deleted file mode 100644 index 7340d7b..0000000 --- a/Examples/NodeToy.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: 52f863b8b4fc21f47b2af1dd63a719ff -folderAsset: yes -timeCreated: 1506460802 -licenseType: Free -DefaultImporter: - userData: - assetBundleName: - assetBundleVariant: diff --git a/Examples/NodeToy/NodeGraphExample.asset b/Examples/NodeToy/NodeGraphExample.asset deleted file mode 100644 index 5e27b6b..0000000 Binary files a/Examples/NodeToy/NodeGraphExample.asset and /dev/null differ diff --git a/Examples/NodeToy/NodeGraphExample.asset.meta b/Examples/NodeToy/NodeGraphExample.asset.meta deleted file mode 100644 index d3a3583..0000000 --- a/Examples/NodeToy/NodeGraphExample.asset.meta +++ /dev/null @@ -1,9 +0,0 @@ -fileFormatVersion: 2 -guid: ce9064d2750a8344784c005788637f15 -timeCreated: 1507333474 -licenseType: Free -NativeFormatImporter: - mainObjectFileID: 11400000 - userData: - assetBundleName: - assetBundleVariant: