├── .gitignore
├── QuickStartGuide.txt
├── QuickStartGuide.txt.meta
├── README.md
├── README.md.meta
├── ThirdParty.meta
├── ThirdParty
├── ProceduralNoise.meta
├── ProceduralNoise
│ ├── Noise.meta
│ └── Noise
│ │ ├── FractalNoise.cs
│ │ ├── FractalNoise.cs.meta
│ │ ├── INoise.cs
│ │ ├── INoise.cs.meta
│ │ ├── Noise.cs
│ │ ├── Noise.cs.meta
│ │ ├── NoiseType.cs
│ │ ├── NoiseType.cs.meta
│ │ ├── PerlinNoise.cs
│ │ ├── PerlinNoise.cs.meta
│ │ ├── PermutationTable.cs
│ │ ├── PermutationTable.cs.meta
│ │ ├── SimplexNoise.cs
│ │ ├── SimplexNoise.cs.meta
│ │ ├── ValueNoise.cs
│ │ ├── ValueNoise.cs.meta
│ │ ├── VoronoiNoise.cs
│ │ ├── VoronoiNoise.cs.meta
│ │ ├── WorleyNoise.cs
│ │ └── WorleyNoise.cs.meta
├── xNode-master.meta
└── xNode-master
│ ├── Examples.meta
│ ├── Examples
│ ├── LogicToy.meta
│ ├── LogicToy
│ │ ├── Editor.meta
│ │ ├── Editor
│ │ │ ├── LogicGraphEditor.cs
│ │ │ ├── LogicGraphEditor.cs.meta
│ │ │ ├── LogicNodeEditor.cs
│ │ │ └── LogicNodeEditor.cs.meta
│ │ ├── Example.asset
│ │ ├── Example.asset.meta
│ │ ├── ITimerTick.cs
│ │ ├── ITimerTick.cs.meta
│ │ ├── LogicGraph.cs
│ │ ├── LogicGraph.cs.meta
│ │ ├── Nodes.meta
│ │ └── Nodes
│ │ │ ├── AndNode.cs
│ │ │ ├── AndNode.cs.meta
│ │ │ ├── LogicNode.cs
│ │ │ ├── LogicNode.cs.meta
│ │ │ ├── NotNode.cs
│ │ │ ├── NotNode.cs.meta
│ │ │ ├── PulseNode.cs
│ │ │ ├── PulseNode.cs.meta
│ │ │ ├── ToggleNode.cs
│ │ │ └── ToggleNode.cs.meta
│ ├── MathGraph.meta
│ ├── MathGraph
│ │ ├── Editor.meta
│ │ ├── Editor
│ │ │ ├── MathGraphEditor.cs
│ │ │ └── MathGraphEditor.cs.meta
│ │ ├── MathGraph.cs
│ │ ├── MathGraph.cs.meta
│ │ ├── New Math Graph.asset
│ │ ├── New Math Graph.asset.meta
│ │ ├── Nodes.meta
│ │ └── Nodes
│ │ │ ├── DisplayValue.cs
│ │ │ ├── DisplayValue.cs.meta
│ │ │ ├── Editor.meta
│ │ │ ├── Editor
│ │ │ ├── DisplayValueEditor.cs
│ │ │ └── DisplayValueEditor.cs.meta
│ │ │ ├── MathNode.cs
│ │ │ ├── MathNode.cs.meta
│ │ │ ├── Vector.cs
│ │ │ └── Vector.cs.meta
│ ├── RuntimeMathGraph.meta
│ ├── RuntimeMathGraph
│ │ ├── Graphics.meta
│ │ ├── Graphics
│ │ │ ├── half.png
│ │ │ ├── half.png.meta
│ │ │ ├── xnode_dot.png
│ │ │ ├── xnode_dot.png.meta
│ │ │ ├── xnode_dot_outer.png
│ │ │ ├── xnode_dot_outer.png.meta
│ │ │ ├── xnode_node.png
│ │ │ ├── xnode_node.png.meta
│ │ │ ├── xnode_node_highlight.png
│ │ │ └── xnode_node_highlight.png.meta
│ │ ├── Prefabs.meta
│ │ ├── Prefabs
│ │ │ ├── Connection.prefab
│ │ │ ├── Connection.prefab.meta
│ │ │ ├── NodeGraph.prefab
│ │ │ ├── NodeGraph.prefab.meta
│ │ │ ├── Nodes.meta
│ │ │ └── Nodes
│ │ │ │ ├── DisplayValue.prefab
│ │ │ │ ├── DisplayValue.prefab.meta
│ │ │ │ ├── MathNode.prefab
│ │ │ │ ├── MathNode.prefab.meta
│ │ │ │ ├── Vector.prefab
│ │ │ │ └── Vector.prefab.meta
│ │ ├── Scenes.meta
│ │ ├── Scenes
│ │ │ ├── RuntimeGraph.unity
│ │ │ ├── RuntimeGraph.unity.meta
│ │ │ ├── RuntimeGraphSettings.lighting
│ │ │ └── RuntimeGraphSettings.lighting.meta
│ │ ├── Scripts.meta
│ │ └── Scripts
│ │ │ ├── Connection.cs
│ │ │ ├── Connection.cs.meta
│ │ │ ├── NodeDrag.cs
│ │ │ ├── NodeDrag.cs.meta
│ │ │ ├── RuntimeMathGraph.cs
│ │ │ ├── RuntimeMathGraph.cs.meta
│ │ │ ├── RuntimeNodes.meta
│ │ │ ├── RuntimeNodes
│ │ │ ├── UGUIDisplayValue.cs
│ │ │ ├── UGUIDisplayValue.cs.meta
│ │ │ ├── UGUIMathBaseNode.cs
│ │ │ ├── UGUIMathBaseNode.cs.meta
│ │ │ ├── UGUIMathNode.cs
│ │ │ ├── UGUIMathNode.cs.meta
│ │ │ ├── UGUIVector.cs
│ │ │ └── UGUIVector.cs.meta
│ │ │ ├── UGUIContextMenu.cs
│ │ │ ├── UGUIContextMenu.cs.meta
│ │ │ ├── UGUIPort.cs
│ │ │ ├── UGUIPort.cs.meta
│ │ │ ├── UGUITooltip.cs
│ │ │ └── UGUITooltip.cs.meta
│ ├── StateMachine.meta
│ └── StateMachine
│ │ ├── Editor.meta
│ │ ├── Editor
│ │ ├── StateGraphEditor.cs
│ │ └── StateGraphEditor.cs.meta
│ │ ├── New State Graph.asset
│ │ ├── New State Graph.asset.meta
│ │ ├── Nodes.meta
│ │ ├── Nodes
│ │ ├── Editor.meta
│ │ ├── Editor
│ │ │ ├── StateNodeEditor.cs
│ │ │ └── StateNodeEditor.cs.meta
│ │ ├── StateNode.cs
│ │ └── StateNode.cs.meta
│ │ ├── README.md
│ │ ├── README.md.meta
│ │ ├── StateGraph.cs
│ │ ├── StateGraph.cs.meta
│ │ ├── test.asset
│ │ └── test.asset.meta
│ ├── Scripts.meta
│ └── Scripts
│ ├── Attributes.meta
│ ├── Attributes
│ ├── NodeEnum.cs
│ └── NodeEnum.cs.meta
│ ├── Editor.meta
│ ├── Editor
│ ├── Drawers.meta
│ ├── Drawers
│ │ ├── NodeEnumDrawer.cs
│ │ ├── NodeEnumDrawer.cs.meta
│ │ ├── Odin.meta
│ │ └── Odin
│ │ │ ├── InNodeEditorAttributeProcessor.cs
│ │ │ ├── InNodeEditorAttributeProcessor.cs.meta
│ │ │ ├── InputAttributeDrawer.cs
│ │ │ ├── InputAttributeDrawer.cs.meta
│ │ │ ├── OutputAttributeDrawer.cs
│ │ │ └── OutputAttributeDrawer.cs.meta
│ ├── GraphAndNodeEditor.cs
│ ├── GraphAndNodeEditor.cs.meta
│ ├── GraphRenameFixAssetProcessor.cs
│ ├── GraphRenameFixAssetProcessor.cs.meta
│ ├── Internal.meta
│ ├── Internal
│ │ ├── RerouteReference.cs
│ │ └── RerouteReference.cs.meta
│ ├── NodeEditor.cs
│ ├── NodeEditor.cs.meta
│ ├── NodeEditorAction.cs
│ ├── NodeEditorAction.cs.meta
│ ├── NodeEditorAssetModProcessor.cs
│ ├── NodeEditorAssetModProcessor.cs.meta
│ ├── NodeEditorBase.cs
│ ├── NodeEditorBase.cs.meta
│ ├── NodeEditorGUI.cs
│ ├── NodeEditorGUI.cs.meta
│ ├── NodeEditorGUILayout.cs
│ ├── NodeEditorGUILayout.cs.meta
│ ├── NodeEditorPreferences.cs
│ ├── NodeEditorPreferences.cs.meta
│ ├── NodeEditorReflection.cs
│ ├── NodeEditorReflection.cs.meta
│ ├── NodeEditorResources.cs
│ ├── NodeEditorResources.cs.meta
│ ├── NodeEditorUtilities.cs
│ ├── NodeEditorUtilities.cs.meta
│ ├── NodeEditorWindow.cs
│ ├── NodeEditorWindow.cs.meta
│ ├── NodeGraphEditor.cs
│ ├── NodeGraphEditor.cs.meta
│ ├── NodeGraphImporter.cs
│ ├── NodeGraphImporter.cs.meta
│ ├── RenamePopup.cs
│ ├── RenamePopup.cs.meta
│ ├── Resources.meta
│ ├── Resources
│ │ ├── ScriptTemplates.meta
│ │ ├── ScriptTemplates
│ │ │ ├── xNode_NodeGraphTemplate.cs.txt
│ │ │ ├── xNode_NodeGraphTemplate.cs.txt.meta
│ │ │ ├── xNode_NodeTemplate.cs.txt
│ │ │ └── xNode_NodeTemplate.cs.txt.meta
│ │ ├── xnode_dot.png
│ │ ├── xnode_dot.png.meta
│ │ ├── xnode_dot_outer.png
│ │ ├── xnode_dot_outer.png.meta
│ │ ├── xnode_node.png
│ │ ├── xnode_node.png.meta
│ │ ├── xnode_node_highlight.png
│ │ ├── xnode_node_highlight.png.meta
│ │ ├── xnode_node_workfile.psd
│ │ └── xnode_node_workfile.psd.meta
│ ├── SceneGraphEditor.cs
│ ├── SceneGraphEditor.cs.meta
│ ├── XNodeEditor.asmdef
│ └── XNodeEditor.asmdef.meta
│ ├── Node.cs
│ ├── Node.cs.meta
│ ├── NodeDataCache.cs
│ ├── NodeDataCache.cs.meta
│ ├── NodeGraph.cs
│ ├── NodeGraph.cs.meta
│ ├── NodePort.cs
│ ├── NodePort.cs.meta
│ ├── SceneGraph.cs
│ ├── SceneGraph.cs.meta
│ ├── XNode.asmdef
│ └── XNode.asmdef.meta
├── UltraNoise5000.meta
└── UltraNoise5000
├── Async.meta
├── Async
├── BaseSampleStep.cs
├── BaseSampleStep.cs.meta
├── BaseSampleStep2DAsync.cs
├── BaseSampleStep2DAsync.cs.meta
├── BaseSampleStep3DAsync.cs
├── BaseSampleStep3DAsync.cs.meta
├── BaseSampleStepAsync.cs
├── BaseSampleStepAsync.cs.meta
├── PaintToolSampleStep.cs
├── PaintToolSampleStep.cs.meta
├── SampleStepColor.cs
├── SampleStepColor.cs.meta
├── SampleStepFloat.cs
├── SampleStepFloat.cs.meta
├── SampleStepFloat2.cs
├── SampleStepFloat2.cs.meta
├── SampleStepFloat3.cs
└── SampleStepFloat3.cs.meta
├── Exports.meta
├── Exports
├── ExportNode.cs
├── ExportNode.cs.meta
├── PaintLayer.cs
├── PaintLayer.cs.meta
├── PaintLayerExportGroup.cs
├── PaintLayerExportGroup.cs.meta
├── TextureExportNode.cs
└── TextureExportNode.cs.meta
├── Generators.meta
├── Generators
├── Attributes.cs
├── Attributes.cs.meta
├── NodeGeneratorHelper.cs
├── NodeGeneratorHelper.cs.meta
├── NoiseGenerator.cs
├── NoiseGenerator.cs.meta
├── Static.meta
└── Static
│ ├── Black.cs
│ ├── Black.cs.meta
│ ├── Circle.cs
│ ├── Circle.cs.meta
│ ├── ExternalNode.cs
│ ├── ExternalNode.cs.meta
│ ├── Gradient.cs
│ ├── Gradient.cs.meta
│ ├── Texture.cs
│ ├── Texture.cs.meta
│ ├── Triangle.cs
│ ├── Triangle.cs.meta
│ ├── White.cs
│ └── White.cs.meta
├── Graph.meta
├── Graph
├── NoiseNodeGraph.cs
└── NoiseNodeGraph.cs.meta
├── Modifiers.meta
├── Modifiers
├── AbsCordinates.cs
├── AbsCordinates.cs.meta
├── BaseNodeModifier.cs
├── BaseNodeModifier.cs.meta
├── Clamp.cs
├── Clamp.cs.meta
├── Cos.cs
├── Cos.cs.meta
├── Curve.cs
├── Curve.cs.meta
├── OneMinus.cs
├── OneMinus.cs.meta
├── Sin.cs
├── Sin.cs.meta
├── Step.cs
├── Step.cs.meta
├── Tan.cs
└── Tan.cs.meta
├── Nodes.meta
├── Nodes
├── Bound.cs
├── Bound.cs.meta
├── NodeBase.cs
├── NodeBase.cs.meta
├── NodeDoubleInputOutput.cs
├── NodeDoubleInputOutput.cs.meta
├── NodeInputOutput.cs
├── NodeInputOutput.cs.meta
├── NodeOutput.cs
├── NodeOutput.cs.meta
├── NodeProprieties.cs
├── NodeProprieties.cs.meta
├── NodeTripleInputOutput.cs
├── NodeTripleInputOutput.cs.meta
├── PreviewImage.cs
└── PreviewImage.cs.meta
├── Operations.meta
├── Operations
├── Add.cs
├── Add.cs.meta
├── Div.cs
├── Div.cs.meta
├── Lerp.cs
├── Lerp.cs.meta
├── LerpNoise.cs
├── LerpNoise.cs.meta
├── Mult.cs
├── Mult.cs.meta
├── Sub.cs
└── Sub.cs.meta
├── UseTools.meta
├── UseTools
├── Mesh.meta
├── Mesh
│ ├── UltraMeshDeformationTool.cs
│ └── UltraMeshDeformationTool.cs.meta
├── Movement.meta
├── Movement
│ ├── UltraNoiseMovement.cs
│ ├── UltraNoiseMovement.cs.meta
│ ├── UltraNoiseMovementSettings.cs
│ └── UltraNoiseMovementSettings.cs.meta
├── Placement.meta
├── Placement
│ ├── Base.meta
│ ├── Base
│ │ ├── PlacementItem.cs
│ │ ├── PlacementItem.cs.meta
│ │ ├── PlacementSettings.cs
│ │ ├── PlacementSettings.cs.meta
│ │ ├── PlacementVectorRange.cs
│ │ ├── PlacementVectorRange.cs.meta
│ │ ├── PlacementVectorRangeRandom.cs
│ │ ├── PlacementVectorRangeRandom.cs.meta
│ │ ├── PlacementVectorRangeValue.cs
│ │ ├── PlacementVectorRangeValue.cs.meta
│ │ ├── enum.meta
│ │ └── enum
│ │ │ ├── AxisType.cs
│ │ │ ├── AxisType.cs.meta
│ │ │ ├── RangeType.cs
│ │ │ └── RangeType.cs.meta
│ ├── HeightPositioning.meta
│ ├── HeightPositioning
│ │ ├── GridHeightPos.cs
│ │ ├── GridHeightPos.cs.meta
│ │ ├── HeightBase.cs
│ │ ├── HeightBase.cs.meta
│ │ ├── HeightPosType.cs
│ │ ├── HeightPosType.cs.meta
│ │ ├── IHeightBase.cs
│ │ ├── IHeightBase.cs.meta
│ │ ├── NoiseHeightPos.cs
│ │ ├── NoiseHeightPos.cs.meta
│ │ ├── RayCastHeightPos.cs
│ │ └── RayCastHeightPos.cs.meta
│ ├── PlacementItemGameObject.cs
│ ├── PlacementItemGameObject.cs.meta
│ ├── Settings.meta
│ ├── Settings
│ │ ├── BasePlacementSetting.cs
│ │ ├── BasePlacementSetting.cs.meta
│ │ ├── PositionSettings.cs
│ │ ├── PositionSettings.cs.meta
│ │ ├── RotationSettings.cs
│ │ ├── RotationSettings.cs.meta
│ │ ├── ScaleSettings.cs
│ │ └── ScaleSettings.cs.meta
│ ├── UltraPlacementTool.cs
│ └── UltraPlacementTool.cs.meta
├── Terrain.meta
├── Terrain
│ ├── BaseTool.cs
│ ├── BaseTool.cs.meta
│ ├── TerrainTool.cs
│ ├── TerrainTool.cs.meta
│ ├── UltraTerrainPainter.cs
│ ├── UltraTerrainPainter.cs.meta
│ ├── UltraTerrainShaper.cs
│ └── UltraTerrainShaper.cs.meta
├── Transform.meta
├── Transform
│ ├── Position.cs
│ ├── Position.cs.meta
│ ├── Rotation.cs
│ ├── Rotation.cs.meta
│ ├── Scale.cs
│ └── Scale.cs.meta
├── Utils.meta
└── Utils
│ ├── CoroutineWrapper.cs
│ ├── CoroutineWrapper.cs.meta
│ ├── MathUtils.cs
│ ├── MathUtils.cs.meta
│ ├── PlacementBounds.cs
│ ├── PlacementBounds.cs.meta
│ ├── Profiler.cs
│ ├── Profiler.cs.meta
│ ├── ProgressBar.cs
│ ├── ProgressBar.cs.meta
│ ├── TaskGroup.cs
│ ├── TaskGroup.cs.meta
│ ├── Wait.cs
│ └── Wait.cs.meta
├── Utilities.meta
└── Utilities
├── CommentBox.cs
├── CommentBox.cs.meta
├── Coupler.cs
└── Coupler.cs.meta
/.gitignore:
--------------------------------------------------------------------------------
1 | # This .gitignore file should be placed at the root of your Unity project directory
2 | #
3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
4 | #
5 | /[Ll]ibrary/
6 | /[Tt]emp/
7 | /[Oo]bj/
8 | /[Bb]uild/
9 | /[Bb]uilds/
10 | /[Ll]ogs/
11 | /[Mm]emoryCaptures/
12 |
13 | # Asset meta data should only be ignored when the corresponding asset is also ignored
14 | !/[Aa]ssets/**/*.meta
15 |
16 | # Uncomment this line if you wish to ignore the asset store tools plugin
17 | # /[Aa]ssets/AssetStoreTools*
18 |
19 | # Autogenerated Jetbrains Rider plugin
20 | [Aa]ssets/Plugins/Editor/JetBrains*
21 |
22 | # Visual Studio cache directory
23 | .vs/
24 |
25 | # Gradle cache directory
26 | .gradle/
27 |
28 | # Autogenerated VS/MD/Consulo solution and project files
29 | ExportedObj/
30 | .consulo/
31 | *.csproj
32 | *.unityproj
33 | *.sln
34 | *.suo
35 | *.tmp
36 | *.user
37 | *.userprefs
38 | *.pidb
39 | *.booproj
40 | *.svd
41 | *.pdb
42 | *.mdb
43 | *.opendb
44 | *.VC.db
45 |
46 | # Unity3D generated meta files
47 | *.pidb.meta
48 | *.pdb.meta
49 | *.mdb.meta
50 |
51 | # Unity3D generated file on crash reports
52 | sysinfo.txt
53 |
54 | # Builds
55 | *.apk
56 | *.unitypackage
57 |
58 | # Crashlytics generated file
59 | crashlytics-build.properties
60 |
61 |
--------------------------------------------------------------------------------
/QuickStartGuide.txt:
--------------------------------------------------------------------------------
1 | Quick start guide for UltraNoise
2 |
3 |
4 | 1. Add Editor Coroutines from package manager
5 | 1. Open the package manager from “Window/package manager”
6 | 2. From the Unity registry select the package “Editor Coroutines” and install
7 | 2. Add Odin inspector
8 | 1. If you don't own Odin inspector get it here: https://assetstore.unity.com/packages/tools/utilities/odin-inspector-and-serializer-89041
9 | 2. Open the package manager from “Window/package manager”
10 | 3. From your personal asset Select odin inspector and install the package.
11 |
12 |
13 | And you should be ready to go!
14 |
15 |
16 | To create your first noise from the create menu select:
17 | “Create/KillMobil/UltraNoise/Noise Graph”
18 |
19 |
20 | From the project preferences you can adjust xNode settings like the node connection line etc.
21 |
22 |
23 | Examples and learning resources can be found here:
24 | https://github.com/KillMobil-SA/UltraNoiseExamples
25 |
26 |
27 | All the best from
28 | https://twitter.com/kllmbl
29 | &
30 | https://twitter.com/ycarowr
--------------------------------------------------------------------------------
/QuickStartGuide.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4119275f76a887d4ab27dddc969083a0
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/README.md.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 530abc9b51f5c9a4aaadbd12d585e3a3
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/ThirdParty.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 85bf632217258704bb34d986208a633e
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f78120c4afb604547a29a39560ba1670
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 42f8918d06894d647a4563abfd4fa69e
3 | folderAsset: yes
4 | timeCreated: 1489482446
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/FractalNoise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a9ba035e8204888478841b1d715daecd
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/INoise.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using UnityEngine;
4 |
5 | namespace ProceduralNoiseProject
6 | {
7 | ///
8 | /// Interface for generating noise.
9 | ///
10 | public interface INoise
11 | {
12 |
13 | ///
14 | /// The frequency of the fractal.
15 | ///
16 | float Frequency { get; set; }
17 |
18 | ///
19 | /// The amplitude of the fractal.
20 | ///
21 | float Amplitude { get; set; }
22 |
23 | ///
24 | /// The offset applied to each dimension.
25 | ///
26 | Vector3 Offset { get; set; }
27 |
28 | ///
29 | /// Sample the noise in 1 dimension.
30 | ///
31 | float Sample1D(float x);
32 |
33 | ///
34 | /// Sample the noise in 2 dimensions.
35 | ///
36 | float Sample2D(float x, float y);
37 |
38 | ///
39 | /// Sample the noise in 3 dimensions.
40 | ///
41 | float Sample3D(float x, float y, float z);
42 |
43 | ///
44 | /// Update the seed.
45 | ///
46 | void UpdateSeed(int seed);
47 |
48 | }
49 |
50 | }
51 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/INoise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 383fcd9f09f34594cb4ed66f8dc3ac47
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/Noise.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using UnityEngine;
4 |
5 | namespace ProceduralNoiseProject
6 | {
7 | ///
8 | /// Abstract class for generating noise.
9 | ///
10 | public abstract class Noise : INoise
11 | {
12 |
13 | ///
14 | /// The frequency of the fractal.
15 | ///
16 | public float Frequency { get; set; }
17 |
18 | ///
19 | /// The amplitude of the fractal.
20 | ///
21 | public float Amplitude { get; set; }
22 |
23 | ///
24 | /// The offset applied to each dimension.
25 | ///
26 | public Vector3 Offset { get; set; }
27 |
28 | ///
29 | /// Create a noise object.
30 | ///
31 | public Noise()
32 | {
33 |
34 | }
35 |
36 | ///
37 | /// Sample the noise in 1 dimension.
38 | ///
39 | public abstract float Sample1D(float x);
40 |
41 | ///
42 | /// Sample the noise in 2 dimensions.
43 | ///
44 | public abstract float Sample2D(float x, float y);
45 |
46 | ///
47 | /// Sample the noise in 3 dimensions.
48 | ///
49 | public abstract float Sample3D(float x, float y, float z);
50 |
51 | ///
52 | /// Update the seed.
53 | ///
54 | public abstract void UpdateSeed(int seed);
55 |
56 | }
57 |
58 | }
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/Noise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0cf7fa87868b5134d9fe207ab82df5ff
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/NoiseType.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 |
5 | public enum NOISE_TYPE { PERLIN, VALUE, SIMPLEX, VORONOI, WORLEY }
6 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/NoiseType.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 691ebd90f89fcb04d83a55721880316d
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/PerlinNoise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7d1b91dcd0ddc7341b38c0b99cb435bc
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/PermutationTable.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | namespace ProceduralNoiseProject
5 | {
6 | internal class PermutationTable
7 | {
8 |
9 | public int Size { get; private set; }
10 |
11 | public int Seed { get; private set; }
12 |
13 | public int Max { get; private set; }
14 |
15 | public float Inverse { get; private set; }
16 |
17 | private int Wrap;
18 |
19 | private int[] Table;
20 |
21 | internal PermutationTable(int size, int max, int seed)
22 | {
23 | Size = size;
24 | Wrap = Size - 1;
25 | Max = Math.Max(1, max);
26 | Inverse = 1.0f / Max;
27 | Build(seed);
28 | }
29 |
30 | internal void Build(int seed)
31 | {
32 | if (Seed == seed && Table != null) return;
33 |
34 | Seed = seed;
35 | Table = new int[Size];
36 |
37 | System.Random rnd = new System.Random(Seed);
38 |
39 | for(int i = 0; i < Size; i++)
40 | {
41 | Table[i] = rnd.Next();
42 | }
43 | }
44 |
45 | internal int this[int i]
46 | {
47 | get
48 | {
49 | return Table[i & Wrap] & Max;
50 | }
51 | }
52 |
53 | internal int this[int i, int j]
54 | {
55 | get
56 | {
57 | return Table[(j + Table[i & Wrap]) & Wrap] & Max;
58 | }
59 | }
60 |
61 | internal int this[int i, int j, int k]
62 | {
63 | get
64 | {
65 | return Table[(k + Table[(j + Table[i & Wrap]) & Wrap]) & Wrap] & Max;
66 | }
67 | }
68 |
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/PermutationTable.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0a672f909348b1d4aa28049d606caa95
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/SimplexNoise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 131584a410cef254c8f9dc7438eb4156
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/ValueNoise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5d9a8f0dc2f85404f8bcdbced78152b2
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/VoronoiNoise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4ff120f87de31174396fcb53e3a9e642
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/ProceduralNoise/Noise/WorleyNoise.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ded05784a6f59dd4cbcc8a6a69886d3b
3 | timeCreated: 1489482448
4 | licenseType: Pro
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f3ae388475114da468043e3cd691e648
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7302249d0ecbb5c44a92b49accca82fa
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9ac562a0423fff74ea984a2d355e4df9
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e5de235328e16fc4dbc4dcdd3794863e
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Editor/LogicGraphEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6c9bb5ae9dee9af43a89fa0db3ed8de0
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Editor/LogicNodeEditor.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor;
2 | using UnityEngine;
3 | using XNode;
4 | using XNode.Examples.LogicToy;
5 |
6 | namespace XNodeEditor.Examples.LogicToy {
7 | [CustomNodeEditor(typeof(LogicNode))]
8 | public class LogicNodeEditor : NodeEditor {
9 | private LogicNode node;
10 | private LogicGraphEditor graphEditor;
11 |
12 | public override void OnHeaderGUI() {
13 | // Initialization
14 | if (node == null) {
15 | node = target as LogicNode;
16 | graphEditor = NodeGraphEditor.GetEditor(target.graph, window) as LogicGraphEditor;
17 | }
18 |
19 | base.OnHeaderGUI();
20 | Rect dotRect = GUILayoutUtility.GetLastRect();
21 | dotRect.size = new Vector2(16, 16);
22 | dotRect.y += 6;
23 |
24 | GUI.color = graphEditor.GetLerpColor(Color.red, Color.green, node, node.led);
25 | GUI.DrawTexture(dotRect, NodeEditorResources.dot);
26 | GUI.color = Color.white;
27 | }
28 |
29 | public override void OnBodyGUI() {
30 | if (target == null) {
31 | Debug.LogWarning("Null target node for node editor!");
32 | return;
33 | }
34 | NodePort input = target.GetPort("input");
35 | NodePort output = target.GetPort("output");
36 |
37 | GUILayout.BeginHorizontal();
38 | if (input != null) NodeEditorGUILayout.PortField(GUIContent.none, input, GUILayout.MinWidth(0));
39 | if (output != null) NodeEditorGUILayout.PortField(GUIContent.none, output, GUILayout.MinWidth(0));
40 | GUILayout.EndHorizontal();
41 | EditorGUIUtility.labelWidth = 60;
42 | base.OnBodyGUI();
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Editor/LogicNodeEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f1280a9d3431638429b64ea41000b794
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Example.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: df29bbd59126610439c3391f59eac02a
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/ITimerTick.cs:
--------------------------------------------------------------------------------
1 | namespace XNode.Examples.LogicToy {
2 | public interface ITimerTick {
3 | void Tick(float timeDelta);
4 | }
5 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/ITimerTick.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 46533d584cdbed04db785406b8361397
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/LogicGraph.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace XNode.Examples.LogicToy {
4 | [CreateAssetMenu(fileName = "New LogicToy Graph", menuName = "xNode Examples/LogicToy Graph")]
5 | public class LogicGraph : NodeGraph { }
6 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/LogicGraph.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1577ad53614c9e0498c962eaa9ba304f
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8852475771ad63a45a0854e9419d4e19
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/AndNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEngine;
3 |
4 | namespace XNode.Examples.LogicToy {
5 | [NodeWidth(140), NodeTint(100, 70, 70)]
6 | public class AndNode : LogicNode {
7 | [Input, HideInInspector] public bool input;
8 | [Output, HideInInspector] public bool output;
9 | public override bool led { get { return output; } }
10 |
11 | protected override void OnInputChanged() {
12 | bool newInput = GetPort("input").GetInputValues().All(x => x);
13 |
14 | if (input != newInput) {
15 | input = newInput;
16 | output = newInput;
17 | SendSignal(GetPort("output"));
18 | }
19 | }
20 |
21 | public override object GetValue(NodePort port) {
22 | return output;
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/AndNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c88b3b7abe7eb324baec5d03dfa998ab
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/LogicNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEngine;
3 |
4 | namespace XNode.Examples.LogicToy {
5 | /// Base node for the LogicToy system
6 | public abstract class LogicNode : Node {
7 | public Action onStateChange;
8 | public abstract bool led { get; }
9 |
10 | public void SendSignal(NodePort output) {
11 | // Loop through port connections
12 | int connectionCount = output.ConnectionCount;
13 | for (int i = 0; i < connectionCount; i++) {
14 | NodePort connectedPort = output.GetConnection(i);
15 |
16 | // Get connected ports logic node
17 | LogicNode connectedNode = connectedPort.node as LogicNode;
18 |
19 | // Trigger it
20 | if (connectedNode != null) connectedNode.OnInputChanged();
21 | }
22 | if (onStateChange != null) onStateChange();
23 | }
24 |
25 | protected abstract void OnInputChanged();
26 |
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/LogicNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c1731c3983afdaa4e824178fcd76d66e
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/NotNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEngine;
3 |
4 | namespace XNode.Examples.LogicToy {
5 | [NodeWidth(140), NodeTint(100, 100, 50)]
6 | public class NotNode : LogicNode {
7 | [Input, HideInInspector] public bool input;
8 | [Output, HideInInspector] public bool output = true;
9 | public override bool led { get { return output; } }
10 |
11 | protected override void OnInputChanged() {
12 | bool newInput = GetPort("input").GetInputValues().Any(x => x);
13 |
14 | if (input != newInput) {
15 | input = newInput;
16 | output = !newInput;
17 | SendSignal(GetPort("output"));
18 | }
19 | }
20 |
21 | public override object GetValue(NodePort port) {
22 | return output;
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/NotNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c4bb0f0e96df60a4690ca03082a93b44
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/PulseNode.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace XNode.Examples.LogicToy {
4 | [NodeWidth(140), NodeTint(70,100,70)]
5 | public class PulseNode : LogicNode, ITimerTick {
6 | [Space(-18)]
7 | public float interval = 1f;
8 | [Output, HideInInspector] public bool output;
9 | public override bool led { get { return output; } }
10 |
11 | private float timer;
12 |
13 | public void Tick(float deltaTime) {
14 | timer += deltaTime;
15 | if (!output && timer > interval) {
16 | timer -= interval;
17 | output = true;
18 | SendSignal(GetPort("output"));
19 | } else if (output) {
20 | output = false;
21 | SendSignal(GetPort("output"));
22 | }
23 | }
24 |
25 | /// This node can not receive signals, so this is not used
26 | protected override void OnInputChanged() { }
27 |
28 | public override object GetValue(NodePort port) {
29 | return output;
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/PulseNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 54822dcd4ea0525409ad71a5fa416755
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/ToggleNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEngine;
3 |
4 | namespace XNode.Examples.LogicToy {
5 | [NodeWidth(140), NodeTint(70,70,100)]
6 | public class ToggleNode : LogicNode {
7 | [Input, HideInInspector] public bool input;
8 | [Output, HideInInspector] public bool output;
9 | public override bool led { get { return output; } }
10 |
11 | protected override void OnInputChanged() {
12 | bool newInput = GetPort("input").GetInputValues().Any(x => x);
13 |
14 | if (!input && newInput) {
15 | input = newInput;
16 | output = !output;
17 | SendSignal(GetPort("output"));
18 | } else if (input && !newInput) {
19 | input = newInput;
20 | }
21 | }
22 |
23 | public override object GetValue(NodePort port) {
24 | return output;
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/LogicToy/Nodes/ToggleNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c7d4066122e5859498bbf1f1db2593cf
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 852631db1e0f047478da88918f49e4a3
3 | folderAsset: yes
4 | timeCreated: 1516177447
5 | licenseType: Free
6 | DefaultImporter:
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 642e362943557314392fc62290a8e242
3 | folderAsset: yes
4 | timeCreated: 1516180279
5 | licenseType: Free
6 | DefaultImporter:
7 | externalObjects: {}
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/Editor/MathGraphEditor.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using XNode.Examples;
5 |
6 | namespace XNodeEditor.Examples {
7 | [CustomNodeGraphEditor(typeof(MathGraph))]
8 | public class MathGraphEditor : NodeGraphEditor {
9 |
10 | ///
11 | /// Overriding GetNodeMenuName lets you control if and how nodes are categorized.
12 | /// In this example we are sorting out all node types that are not in the XNode.Examples namespace.
13 | ///
14 | public override string GetNodeMenuName(System.Type type) {
15 | if (type.Namespace == "XNode.Examples.MathNodes") {
16 | return base.GetNodeMenuName(type).Replace("X Node/Examples/Math Nodes/", "");
17 | } else return null;
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/Editor/MathGraphEditor.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3f6ed0407f1f4ad45bf697d7798ddf0d
3 | timeCreated: 1516180270
4 | licenseType: Free
5 | MonoImporter:
6 | externalObjects: {}
7 | serializedVersion: 2
8 | defaultReferences: []
9 | executionOrder: 0
10 | icon: {instanceID: 0}
11 | userData:
12 | assetBundleName:
13 | assetBundleVariant:
14 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/MathGraph.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEngine;
3 |
4 | namespace XNode.Examples {
5 | /// Defines an example nodegraph that can be created as an asset in the Project window.
6 | [Serializable, CreateAssetMenu(fileName = "New Math Graph", menuName = "xNode Examples/Math Graph")]
7 | public class MathGraph : XNode.NodeGraph { }
8 | }
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/MathGraph.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a6399826e2c44b447b32a3ed06646162
3 | timeCreated: 1506460823
4 | licenseType: Free
5 | MonoImporter:
6 | serializedVersion: 2
7 | defaultReferences: []
8 | executionOrder: 0
9 | icon: {instanceID: 0}
10 | userData:
11 | assetBundleName:
12 | assetBundleVariant:
13 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/New Math Graph.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 97b11561dfa2a2646a1217518e90411b
3 | timeCreated: 1516179614
4 | licenseType: Free
5 | NativeFormatImporter:
6 | externalObjects: {}
7 | mainObjectFileID: 11400000
8 | userData:
9 | assetBundleName:
10 | assetBundleVariant:
11 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/Nodes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 31c1681f5df4f764ab4ca7f09cd3be7d
3 | folderAsset: yes
4 | timeCreated: 1505462700
5 | licenseType: Free
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/ThirdParty/xNode-master/Examples/MathGraph/Nodes/DisplayValue.cs:
--------------------------------------------------------------------------------
1 | namespace XNode.Examples.MathNodes {
2 |
3 | public class DisplayValue : XNode.Node {
4 |
5 | ///
6 | /// Create an input port that only allows a single connection.
7 | /// The backing value is not important, as we are only interested in the input value.
8 | /// We are also acceptable of all input types, so any type will do, as long as it is serializable.
9 | ///
10 | [Input(ShowBackingValue.Never, ConnectionType.Override)] public Anything input;
11 |
12 | /// Get the value currently plugged in to this node
13 | public object GetValue() {
14 | return GetInputValue