├── .github
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── feature_request.md
│ └── node_request.md
├── .gitignore
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── CodeGraph_Unity
├── .collabignore
├── Assembly-CSharp-Editor-firstpass.csproj
├── Assembly-CSharp-Editor.csproj
├── Assembly-CSharp-Editor.csproj.DotSettings
├── Assembly-CSharp.csproj
├── Assembly-CSharp.csproj.DotSettings
├── Assets
│ ├── CodeGraph.meta
│ ├── CodeGraph
│ │ ├── CodeGraph.meta
│ │ ├── CodeGraph
│ │ │ ├── CodeGraph.asmdef
│ │ │ ├── CodeGraph.asmdef.meta
│ │ │ ├── Editor.meta
│ │ │ ├── Editor
│ │ │ │ ├── Attributes.meta
│ │ │ │ ├── Attributes
│ │ │ │ │ ├── NodeAttribute.cs
│ │ │ │ │ ├── NodeAttribute.cs.meta
│ │ │ │ │ ├── TitleAttribute.cs
│ │ │ │ │ └── TitleAttribute.cs.meta
│ │ │ │ ├── CodeGraph.cs
│ │ │ │ ├── CodeGraph.cs.meta
│ │ │ │ ├── CodeGraphView.cs
│ │ │ │ ├── CodeGraphView.cs.meta
│ │ │ │ ├── Extensions.meta
│ │ │ │ ├── Extensions
│ │ │ │ │ ├── GraphViewExtensions.cs
│ │ │ │ │ ├── GraphViewExtensions.cs.meta
│ │ │ │ │ ├── ListExtensions.cs
│ │ │ │ │ ├── ListExtensions.cs.meta
│ │ │ │ │ ├── SafeCodeExtensions.cs
│ │ │ │ │ ├── SafeCodeExtensions.cs.meta
│ │ │ │ │ ├── VisualElementExtensions.cs
│ │ │ │ │ └── VisualElementExtensions.cs.meta
│ │ │ │ ├── GroupData.cs
│ │ │ │ ├── GroupData.cs.meta
│ │ │ │ ├── IO.meta
│ │ │ │ ├── IO
│ │ │ │ │ ├── CodeGraphFileOpener.cs
│ │ │ │ │ ├── CodeGraphFileOpener.cs.meta
│ │ │ │ │ ├── CodeGraphFunctionFileOpener.cs
│ │ │ │ │ ├── CodeGraphFunctionFileOpener.cs.meta
│ │ │ │ │ ├── CodeGraphFunctionImporter.cs
│ │ │ │ │ ├── CodeGraphFunctionImporter.cs.meta
│ │ │ │ │ ├── CodeGraphImporter.cs
│ │ │ │ │ ├── CodeGraphImporter.cs.meta
│ │ │ │ │ ├── CreateCodeGraphFunction.cs
│ │ │ │ │ ├── CreateCodeGraphFunction.cs.meta
│ │ │ │ │ ├── CreateCodeGraphMonoBehaviour.cs
│ │ │ │ │ ├── CreateCodeGraphMonoBehaviour.cs.meta
│ │ │ │ │ ├── CreateCodeGraphStandard.cs
│ │ │ │ │ └── CreateCodeGraphStandard.cs.meta
│ │ │ │ ├── Interfaces.meta
│ │ │ │ ├── Interfaces
│ │ │ │ │ ├── IGroupItem.cs
│ │ │ │ │ └── IGroupItem.cs.meta
│ │ │ │ ├── Nodes.meta
│ │ │ │ ├── Nodes
│ │ │ │ │ ├── Abstracts.meta
│ │ │ │ │ ├── Abstracts
│ │ │ │ │ │ ├── AbstractEndNode.cs
│ │ │ │ │ │ ├── AbstractEndNode.cs.meta
│ │ │ │ │ │ ├── AbstractEventNode.cs
│ │ │ │ │ │ ├── AbstractEventNode.cs.meta
│ │ │ │ │ │ ├── AbstractMiddleNode.cs
│ │ │ │ │ │ ├── AbstractMiddleNode.cs.meta
│ │ │ │ │ │ ├── AbstractNode.cs
│ │ │ │ │ │ ├── AbstractNode.cs.meta
│ │ │ │ │ │ ├── AbstractStartNode.cs
│ │ │ │ │ │ └── AbstractStartNode.cs.meta
│ │ │ │ │ ├── EndNodes.meta
│ │ │ │ │ ├── EndNodes
│ │ │ │ │ │ ├── AssignNode.cs
│ │ │ │ │ │ ├── AssignNode.cs.meta
│ │ │ │ │ │ ├── CallMethodNode.cs
│ │ │ │ │ │ ├── CallMethodNode.cs.meta
│ │ │ │ │ │ ├── ConditionalNode.cs
│ │ │ │ │ │ ├── ConditionalNode.cs.meta
│ │ │ │ │ │ ├── CreateVariableNode.cs
│ │ │ │ │ │ ├── CreateVariableNode.cs.meta
│ │ │ │ │ │ ├── CustomCodeNode.cs
│ │ │ │ │ │ ├── CustomCodeNode.cs.meta
│ │ │ │ │ │ ├── DoNTimesNode.cs
│ │ │ │ │ │ ├── DoNTimesNode.cs.meta
│ │ │ │ │ │ ├── DoWithEachNode.cs
│ │ │ │ │ │ ├── DoWithEachNode.cs.meta
│ │ │ │ │ │ ├── InstantiateNode.cs
│ │ │ │ │ │ ├── InstantiateNode.cs.meta
│ │ │ │ │ │ ├── PrintNode.cs
│ │ │ │ │ │ ├── PrintNode.cs.meta
│ │ │ │ │ │ ├── ReturnNode.cs
│ │ │ │ │ │ ├── ReturnNode.cs.meta
│ │ │ │ │ │ ├── WhileNode.cs
│ │ │ │ │ │ └── WhileNode.cs.meta
│ │ │ │ │ ├── EventNodes.meta
│ │ │ │ │ ├── EventNodes
│ │ │ │ │ │ ├── AwakeEventNode.cs
│ │ │ │ │ │ ├── AwakeEventNode.cs.meta
│ │ │ │ │ │ ├── EventExtenderNode.cs
│ │ │ │ │ │ ├── EventExtenderNode.cs.meta
│ │ │ │ │ │ ├── FixedUpdateEventNode.cs
│ │ │ │ │ │ ├── FixedUpdateEventNode.cs.meta
│ │ │ │ │ │ ├── LateUpdateEventNode.cs
│ │ │ │ │ │ ├── LateUpdateEventNode.cs.meta
│ │ │ │ │ │ ├── OtherUnityEvents.cs
│ │ │ │ │ │ ├── OtherUnityEvents.cs.meta
│ │ │ │ │ │ ├── StartEventNode.cs
│ │ │ │ │ │ ├── StartEventNode.cs.meta
│ │ │ │ │ │ ├── UpdateEventNode.cs
│ │ │ │ │ │ └── UpdateEventNode.cs.meta
│ │ │ │ │ ├── MiddleNodes.meta
│ │ │ │ │ ├── MiddleNodes
│ │ │ │ │ │ ├── AddNode.cs
│ │ │ │ │ │ ├── AddNode.cs.meta
│ │ │ │ │ │ ├── CompareNode.cs
│ │ │ │ │ │ ├── CompareNode.cs.meta
│ │ │ │ │ │ ├── DivideNode.cs
│ │ │ │ │ │ ├── DivideNode.cs.meta
│ │ │ │ │ │ ├── GetComponentNode.cs
│ │ │ │ │ │ ├── GetComponentNode.cs.meta
│ │ │ │ │ │ ├── GetPositionNode.cs
│ │ │ │ │ │ ├── GetPositionNode.cs.meta
│ │ │ │ │ │ ├── GetTransformNode.cs
│ │ │ │ │ │ ├── GetTransformNode.cs.meta
│ │ │ │ │ │ ├── InputNodes.cs
│ │ │ │ │ │ ├── InputNodes.cs.meta
│ │ │ │ │ │ ├── MultiplyNode.cs
│ │ │ │ │ │ ├── MultiplyNode.cs.meta
│ │ │ │ │ │ ├── QuaternionEulerNode.cs
│ │ │ │ │ │ ├── QuaternionEulerNode.cs.meta
│ │ │ │ │ │ ├── QuaternionGetEulerAnglesNode.cs
│ │ │ │ │ │ ├── QuaternionGetEulerAnglesNode.cs.meta
│ │ │ │ │ │ ├── QuaternionNode.cs
│ │ │ │ │ │ ├── QuaternionNode.cs.meta
│ │ │ │ │ │ ├── SplitTransformNode.cs
│ │ │ │ │ │ ├── SplitTransformNode.cs.meta
│ │ │ │ │ │ ├── SplitVector2Node.cs
│ │ │ │ │ │ ├── SplitVector2Node.cs.meta
│ │ │ │ │ │ ├── SplitVector3Node.cs
│ │ │ │ │ │ ├── SplitVector3Node.cs.meta
│ │ │ │ │ │ ├── SubtractNode.cs
│ │ │ │ │ │ ├── SubtractNode.cs.meta
│ │ │ │ │ │ ├── Vector2Node.cs
│ │ │ │ │ │ ├── Vector2Node.cs.meta
│ │ │ │ │ │ ├── Vector3Node.cs
│ │ │ │ │ │ └── Vector3Node.cs.meta
│ │ │ │ │ ├── StartNodes.meta
│ │ │ │ │ └── StartNodes
│ │ │ │ │ │ ├── Basic.meta
│ │ │ │ │ │ ├── Basic
│ │ │ │ │ │ ├── BoolNode.cs
│ │ │ │ │ │ ├── BoolNode.cs.meta
│ │ │ │ │ │ ├── CreatePropertyNode.cs
│ │ │ │ │ │ ├── CreatePropertyNode.cs.meta
│ │ │ │ │ │ ├── DoubleNode.cs
│ │ │ │ │ │ ├── DoubleNode.cs.meta
│ │ │ │ │ │ ├── FloatNode.cs
│ │ │ │ │ │ ├── FloatNode.cs.meta
│ │ │ │ │ │ ├── GetPropertyNode.cs
│ │ │ │ │ │ ├── GetPropertyNode.cs.meta
│ │ │ │ │ │ ├── GetVariableNode.cs
│ │ │ │ │ │ ├── GetVariableNode.cs.meta
│ │ │ │ │ │ ├── IntNode.cs
│ │ │ │ │ │ ├── IntNode.cs.meta
│ │ │ │ │ │ ├── StringNode.cs
│ │ │ │ │ │ └── StringNode.cs.meta
│ │ │ │ │ │ ├── CreateMethodNode.cs
│ │ │ │ │ │ ├── CreateMethodNode.cs.meta
│ │ │ │ │ │ ├── CreateVector2Node.cs
│ │ │ │ │ │ ├── CreateVector2Node.cs.meta
│ │ │ │ │ │ ├── CreateVector3Node.cs
│ │ │ │ │ │ ├── CreateVector3Node.cs.meta
│ │ │ │ │ │ ├── CustomCodeOutputNode.cs
│ │ │ │ │ │ ├── CustomCodeOutputNode.cs.meta
│ │ │ │ │ │ ├── GetComponentSelfNode.cs
│ │ │ │ │ │ ├── GetComponentSelfNode.cs.meta
│ │ │ │ │ │ ├── GetTransformSelfNode.cs
│ │ │ │ │ │ ├── GetTransformSelfNode.cs.meta
│ │ │ │ │ │ ├── InputNode.cs
│ │ │ │ │ │ ├── InputNode.cs.meta
│ │ │ │ │ │ ├── KeyCodeNode.cs
│ │ │ │ │ │ ├── KeyCodeNode.cs.meta
│ │ │ │ │ │ ├── MainCameraNode.cs
│ │ │ │ │ │ ├── MainCameraNode.cs.meta
│ │ │ │ │ │ ├── QuaternionIdentityNode.cs
│ │ │ │ │ │ ├── QuaternionIdentityNode.cs.meta
│ │ │ │ │ │ ├── TimeNode.cs
│ │ │ │ │ │ └── TimeNode.cs.meta
│ │ │ │ ├── Ports.meta
│ │ │ │ ├── Ports
│ │ │ │ │ ├── InputPort.cs
│ │ │ │ │ ├── InputPort.cs.meta
│ │ │ │ │ ├── OutputPort.cs
│ │ │ │ │ └── OutputPort.cs.meta
│ │ │ │ ├── SaveUtility.cs
│ │ │ │ ├── SaveUtility.cs.meta
│ │ │ │ ├── SearchWindowProvider.cs
│ │ │ │ └── SearchWindowProvider.cs.meta
│ │ │ ├── Resources.meta
│ │ │ ├── Resources
│ │ │ │ ├── CodeGraph.uss
│ │ │ │ ├── CodeGraph.uss.meta
│ │ │ │ ├── CodeGraphWindow.uss
│ │ │ │ ├── CodeGraphWindow.uss.meta
│ │ │ │ ├── CodeNode.uss
│ │ │ │ ├── CodeNode.uss.meta
│ │ │ │ ├── CreateMethodNode.uss
│ │ │ │ ├── CreateMethodNode.uss.meta
│ │ │ │ ├── codegraph_256.png
│ │ │ │ ├── codegraph_256.png.meta
│ │ │ │ ├── sg_graph_icon_gray_dark@16.png
│ │ │ │ └── sg_graph_icon_gray_dark@16.png.meta
│ │ │ ├── Runtime.meta
│ │ │ └── Runtime
│ │ │ │ ├── CodeGraphData.cs
│ │ │ │ ├── CodeGraphData.cs.meta
│ │ │ │ ├── CodeGraphObject.cs
│ │ │ │ ├── CodeGraphObject.cs.meta
│ │ │ │ ├── CopyPasteGraphData.cs
│ │ │ │ ├── CopyPasteGraphData.cs.meta
│ │ │ │ ├── SerializationHelper.cs
│ │ │ │ ├── SerializationHelper.cs.meta
│ │ │ │ ├── SerializedEdge.cs
│ │ │ │ ├── SerializedEdge.cs.meta
│ │ │ │ ├── SerializedNode.cs
│ │ │ │ └── SerializedNode.cs.meta
│ │ ├── Examples.meta
│ │ └── Examples
│ │ │ ├── Basics.meta
│ │ │ └── Basics
│ │ │ ├── Properties.meta
│ │ │ └── Properties
│ │ │ ├── Explanation.txt
│ │ │ ├── Explanation.txt.meta
│ │ │ ├── Generated Code.cs
│ │ │ └── Generated Code.cs.meta
│ ├── Newtonsoft.Json.meta
│ ├── Newtonsoft.Json
│ │ ├── Newtonsoft.Json.dll
│ │ ├── Newtonsoft.Json.dll.meta
│ │ ├── Newtonsoft.Json.xml
│ │ └── Newtonsoft.Json.xml.meta
│ ├── PlayerControllerOld.cs
│ ├── PlayerControllerOld.cs.meta
│ ├── Scenes.meta
│ ├── Scenes
│ │ ├── SampleScene.unity
│ │ └── SampleScene.unity.meta
│ ├── Sprites.meta
│ ├── Sprites
│ │ ├── Square.png
│ │ └── Square.png.meta
│ ├── TargetFollow.cs
│ ├── TargetFollow.cs.meta
│ ├── TextMesh Pro.meta
│ ├── TextMesh Pro
│ │ ├── Documentation.meta
│ │ ├── Documentation
│ │ │ ├── TextMesh Pro User Guide 2016.pdf
│ │ │ └── TextMesh Pro User Guide 2016.pdf.meta
│ │ ├── Fonts.meta
│ │ ├── Fonts
│ │ │ ├── LiberationSans - OFL.txt
│ │ │ ├── LiberationSans - OFL.txt.meta
│ │ │ ├── LiberationSans.ttf
│ │ │ └── LiberationSans.ttf.meta
│ │ ├── Resources.meta
│ │ ├── Resources
│ │ │ ├── Fonts & Materials.meta
│ │ │ ├── Fonts & Materials
│ │ │ │ ├── LiberationSans SDF - Drop Shadow.mat
│ │ │ │ ├── LiberationSans SDF - Drop Shadow.mat.meta
│ │ │ │ ├── LiberationSans SDF - Fallback.asset
│ │ │ │ ├── LiberationSans SDF - Fallback.asset.meta
│ │ │ │ ├── LiberationSans SDF - Outline.mat
│ │ │ │ ├── LiberationSans SDF - Outline.mat.meta
│ │ │ │ ├── LiberationSans SDF.asset
│ │ │ │ └── LiberationSans SDF.asset.meta
│ │ │ ├── LineBreaking Following Characters.txt
│ │ │ ├── LineBreaking Following Characters.txt.meta
│ │ │ ├── LineBreaking Leading Characters.txt
│ │ │ ├── LineBreaking Leading Characters.txt.meta
│ │ │ ├── Shaders.meta
│ │ │ ├── Shaders
│ │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader
│ │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader.meta
│ │ │ │ ├── TMP_Bitmap-Mobile.shader
│ │ │ │ ├── TMP_Bitmap-Mobile.shader.meta
│ │ │ │ ├── TMP_Bitmap.shader
│ │ │ │ ├── TMP_Bitmap.shader.meta
│ │ │ │ ├── TMP_SDF Overlay.shader
│ │ │ │ ├── TMP_SDF Overlay.shader.meta
│ │ │ │ ├── TMP_SDF-Mobile Masking.shader
│ │ │ │ ├── TMP_SDF-Mobile Masking.shader.meta
│ │ │ │ ├── TMP_SDF-Mobile Overlay.shader
│ │ │ │ ├── TMP_SDF-Mobile Overlay.shader.meta
│ │ │ │ ├── TMP_SDF-Mobile.shader
│ │ │ │ ├── TMP_SDF-Mobile.shader.meta
│ │ │ │ ├── TMP_SDF-Surface-Mobile.shader
│ │ │ │ ├── TMP_SDF-Surface-Mobile.shader.meta
│ │ │ │ ├── TMP_SDF-Surface.shader
│ │ │ │ ├── TMP_SDF-Surface.shader.meta
│ │ │ │ ├── TMP_SDF.shader
│ │ │ │ ├── TMP_SDF.shader.meta
│ │ │ │ ├── TMP_Sprite.shader
│ │ │ │ ├── TMP_Sprite.shader.meta
│ │ │ │ ├── TMPro.cginc
│ │ │ │ ├── TMPro.cginc.meta
│ │ │ │ ├── TMPro_Properties.cginc
│ │ │ │ ├── TMPro_Properties.cginc.meta
│ │ │ │ ├── TMPro_Surface.cginc
│ │ │ │ └── TMPro_Surface.cginc.meta
│ │ │ ├── Sprite Assets.meta
│ │ │ ├── Sprite Assets
│ │ │ │ ├── EmojiOne.asset
│ │ │ │ └── EmojiOne.asset.meta
│ │ │ ├── Style Sheets.meta
│ │ │ ├── Style Sheets
│ │ │ │ ├── Default Style Sheet.asset
│ │ │ │ └── Default Style Sheet.asset.meta
│ │ │ ├── TMP Settings.asset
│ │ │ └── TMP Settings.asset.meta
│ │ ├── Sprites.meta
│ │ └── Sprites
│ │ │ ├── EmojiOne Attribution.txt
│ │ │ ├── EmojiOne Attribution.txt.meta
│ │ │ ├── EmojiOne.json
│ │ │ ├── EmojiOne.json.meta
│ │ │ ├── EmojiOne.png
│ │ │ └── EmojiOne.png.meta
│ ├── UniversalRenderPipelineAsset.asset
│ ├── UniversalRenderPipelineAsset.asset.meta
│ ├── UniversalRenderPipelineAsset_Renderer.asset
│ └── UniversalRenderPipelineAsset_Renderer.asset.meta
├── CodeGraph.csproj
├── CodeGraph.csproj.DotSettings
├── CodeGraph.sln
├── CodeGraph.sln.DotSettings.user
├── CodeGraph_Unity.sln
├── Packages
│ ├── Newtonsoft.Json.11.0.2
│ │ ├── .signature.p7s
│ │ ├── LICENSE.md
│ │ ├── Newtonsoft.Json.11.0.2.nupkg
│ │ └── lib
│ │ │ ├── net20
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ ├── net35
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ ├── net40
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ ├── net45
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ ├── netstandard1.0
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ ├── netstandard1.3
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ ├── netstandard2.0
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ ├── portable-net40+sl5+win8+wp8+wpa81
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ │ │ └── portable-net45+win8+wp8+wpa81
│ │ │ ├── Newtonsoft.Json.dll
│ │ │ └── Newtonsoft.Json.xml
│ └── manifest.json
├── ProjectSettings
│ ├── AudioManager.asset
│ ├── ClusterInputManager.asset
│ ├── DynamicsManager.asset
│ ├── EditorBuildSettings.asset
│ ├── EditorSettings.asset
│ ├── GraphicsSettings.asset
│ ├── InputManager.asset
│ ├── NavMeshAreas.asset
│ ├── NetworkManager.asset
│ ├── Physics2DSettings.asset
│ ├── PresetManager.asset
│ ├── ProjectSettings.asset
│ ├── ProjectVersion.txt
│ ├── QualitySettings.asset
│ ├── TagManager.asset
│ ├── TimeManager.asset
│ ├── URPProjectSettings.asset
│ ├── UnityConnectSettings.asset
│ ├── VFXManager.asset
│ └── XRSettings.asset
├── UIElementsSchema
│ ├── UIElements.xsd
│ ├── UnityEditor.Experimental.GraphView.xsd
│ ├── UnityEditor.PackageManager.UI.xsd
│ ├── UnityEditor.Rendering.LookDev.xsd
│ ├── UnityEditor.ShaderGraph.Drawing.xsd
│ ├── UnityEditor.UIElements.Debugger.xsd
│ ├── UnityEditor.UIElements.xsd
│ └── UnityEngine.UIElements.xsd
├── Unity.AssetGraph.Editor.csproj
├── Unity.AssetGraph.EditorTests.csproj
├── Unity.AssetGraph.Tests.csproj
├── Unity.AssetGraph.csproj
└── packages.config
├── LICENSE.md
├── README.md
├── TODO.md
└── img
├── CodeGraph Banner.psd
├── Repository CodeGraph Social Banner.jpg
├── Repository CodeGraph Social Banner.psd
├── readme_banner.jpg
├── readme_editor1.jpg
├── readme_example1.jpg
├── readme_example2.jpg
└── readme_img1.jpeg
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: bug
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. Windows 10]
28 | - Unity Version: [e.g. 2019.3.0f1]
29 | - CodeGraph Version: [e.g. 2019.0.1]
30 |
31 | **Additional context**
32 | Add any other context about the problem here.
33 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: feature-request
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/node_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Node request
3 | about: Suggest a node that should be added to CodeGraph
4 | title: ''
5 | labels: feature-request, node
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the solution you'd like**
11 | A clear and concise description of what you want to happen.
12 |
13 | **Describe alternatives you've considered**
14 | A clear and concise description of any alternative solutions or features you've considered.
15 |
16 | **Additional context**
17 | Add any other context or screenshots about the feature request here.
18 | Is there an equivalent feature available in Unity in C# that you know of? (For example `GetComponent` method)
19 |
--------------------------------------------------------------------------------
/.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 | /CodeGraph_Unity/[Ll]ibrary/
6 | /CodeGraph_Unity/[Tt]emp/
7 | /CodeGraph_Unity/[Oo]bj/
8 | /CodeGraph_Unity/[Bb]uild/
9 | /CodeGraph_Unity/[Bb]uilds/
10 | /CodeGraph_Unity/[Ll]ogs/
11 |
12 | # MemoryCaptures can get excessive in size.
13 | # They also could contain extremely sensitive data
14 | /CodeGraph_Unity/[Mm]emoryCaptures/
15 |
16 | # Asset meta data should only be ignored when the corresponding asset is also ignored
17 | !/CodeGraph_Unity/[Aa]ssets/**/*.meta
18 |
19 | # Uncomment this line if you wish to ignore the asset store tools plugin
20 | # /[Aa]ssets/AssetStoreTools*
21 |
22 | # Autogenerated Jetbrains Rider plugin
23 | /CodeGraph_Unity/[Aa]ssets/Plugins/Editor/JetBrains*
24 |
25 | # Visual Studio cache directory
26 | /CodeGraph_Unity/.vs/
27 | .vs/
28 |
29 | # Gradle cache directory
30 | /CodeGraph_Unity/.gradle/
31 | .gradle/
32 |
33 | # Autogenerated VS/MD/Consulo solution and project files
34 | /CodeGraph_Unity/ExportedObj/
35 | .consulo/
36 | # *.csproj
37 | # *.unityproj
38 | # *.sln
39 | *.suo
40 | *.tmp
41 | # *.user
42 | # *.userprefs
43 | *.pidb
44 | *.booproj
45 | *.svd
46 | *.pdb
47 | *.mdb
48 | *.opendb
49 | *.VC.db
50 |
51 | # Unity3D generated meta files
52 | *.pidb.meta
53 | *.pdb.meta
54 | *.mdb.meta
55 |
56 | # Unity3D generated file on crash reports
57 | sysinfo.txt
58 |
59 | # Builds
60 | *.apk
61 | *.unitypackage
62 |
63 | # Crashlytics generated file
64 | crashlytics-build.properties
65 |
66 | *.codegraph
67 | *.codegraph.meta
68 | *.codegraphfunction
69 | *.codegraphfunction.meta
70 |
71 | /CodeGraph_Unity/.idea/
72 | .idea/
--------------------------------------------------------------------------------
/CodeGraph_Unity/.collabignore:
--------------------------------------------------------------------------------
1 | # ===========================
2 | # Default Collab Ignore Rules
3 | # ===========================
4 |
5 | # OS Generated
6 | # ============
7 | .DS_Store
8 | ._*
9 | .Spotlight-V100
10 | .Trashes
11 | Icon?
12 | ehthumbs.db
13 | [Tt]humbs.db
14 | [Dd]esktop.ini
15 |
16 | # Visual Studio / MonoDevelop generated
17 | # =====================================
18 | [Ee]xported[Oo]bj/
19 | *.userprefs
20 | *.csproj
21 | *.pidb
22 | *.suo
23 | *.sln
24 | *.user
25 | *.unityproj
26 | *.booproj
27 |
28 | # Unity generated
29 | # ===============
30 | [Oo]bj/
31 | [Bb]uild
32 | sysinfo.txt
33 | *.stackdump
34 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assembly-CSharp-Editor.csproj.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | True
3 | True
4 | True
5 | True
6 | True
7 | True
8 | True
9 | True
10 | True
11 | True
12 | True
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8b04c80ebc39c104ea15b1b654ff4e73
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8fab11d5355a5a640a2078be76dde286
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/CodeGraph.asmdef:
--------------------------------------------------------------------------------
1 | {
2 | "name": "CodeGraph",
3 | "references": [],
4 | "includePlatforms": [],
5 | "excludePlatforms": [],
6 | "allowUnsafeCode": false,
7 | "overrideReferences": false,
8 | "precompiledReferences": [],
9 | "autoReferenced": true,
10 | "defineConstraints": [],
11 | "versionDefines": [],
12 | "noEngineReferences": false
13 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/CodeGraph.asmdef.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6e3dcf749533df64e97da5f92bac4b69
3 | AssemblyDefinitionImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 950341dd7eb54a4f9e38eab8d7a895ed
3 | timeCreated: 1582033340
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Attributes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e7222f56fb0c4918ad219c7029d65810
3 | timeCreated: 1590578058
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Attributes/NodeAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace CodeGraph.Editor {
4 | [AttributeUsage( AttributeTargets.Class)]
5 | public class NodeAttribute : Attribute {
6 | public bool AllowOnClassGraph;
7 | public bool AllowOnMonoBehaviourGraph;
8 |
9 | public NodeAttribute(bool allowOnClassGraph = true, bool allowOnMonoBehaviourGraph = true) {
10 | AllowOnClassGraph = allowOnClassGraph;
11 | AllowOnMonoBehaviourGraph = allowOnMonoBehaviourGraph;
12 | }
13 | }
14 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Attributes/NodeAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e80c7b18b79c4109a0dcb7df66c877a2
3 | timeCreated: 1590578113
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Attributes/TitleAttribute.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace CodeGraph.Editor {
4 | [AttributeUsage( AttributeTargets.Class)]
5 | public class TitleAttribute : Attribute {
6 | public string[] title;
7 |
8 | public TitleAttribute(params string[] title) {
9 | this.title = title;
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Attributes/TitleAttribute.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 52727a847b5441d6ad28002f00a86b7e
3 | timeCreated: 1582296934
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/CodeGraph.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9bd04360cdab45039a8e8956efd8f76a
3 | timeCreated: 1582033389
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/CodeGraphView.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 16b948cc223844ffad5f058e41275d4c
3 | timeCreated: 1582033407
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 57250cd8c51d4f088f045b626bbaccb7
3 | timeCreated: 1582033863
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/GraphViewExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using UnityEngine;
5 | using UnityEngine.UIElements;
6 |
7 | namespace CodeGraph.Editor {
8 | public static class GraphViewExtensions {
9 | public static void InsertCopyPasteGraph(this CodeGraphView graphView, CopyPasteGraphData copyGraph) {
10 | if (copyGraph == null)
11 | return;
12 |
13 | var nodeGuidMap = new Dictionary();
14 | var nodeGuidMapReverse = new Dictionary();
15 | var remappedNodes = new List();
16 | foreach (var node in copyGraph.Nodes) {
17 | var oldGuid = node.GUID;
18 | var newGuid = Guid.NewGuid().ToString();
19 | nodeGuidMap[newGuid] = oldGuid;
20 | nodeGuidMapReverse[oldGuid] = newGuid;
21 | node.GUID = newGuid;
22 | remappedNodes.Add(node);
23 | }
24 |
25 | // Compute the mean of the copied nodes.
26 | var centroid = Vector2.zero;
27 | var count = 1;
28 | foreach (var node in remappedNodes) {
29 | var position = copyGraph.NodePositions[nodeGuidMap[node.GUID]].position;
30 | centroid += (position - centroid) / count;
31 | ++count;
32 | }
33 |
34 | // Get the center of the current view
35 | var viewCenter = graphView.contentViewContainer.WorldToLocal(graphView.layout.center);
36 | foreach (var node in remappedNodes) {
37 | var positionRect = copyGraph.NodePositions[nodeGuidMap[node.GUID]];
38 | var position = positionRect.position;
39 | position += viewCenter - centroid;
40 | positionRect.position = position;
41 | node.SetPosition(positionRect);
42 | }
43 |
44 | remappedNodes.ForEach(graphView.AddElement);
45 | copyGraph.Edges.ToList().ForEach(graphView.Add);
46 |
47 | // Add new elements to selection
48 | graphView.ClearSelection();
49 | copyGraph.Edges.ToList().ForEach(graphView.AddToSelection);
50 | remappedNodes.ForEach(graphView.AddToSelection);
51 | }
52 | }
53 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/GraphViewExtensions.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9323713278b94d66b705b18624104d3d
3 | timeCreated: 1583398569
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/ListExtensions.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace CodeGraph.Editor {
4 | public static class ListExtensions {
5 | public static string Join(this IEnumerable list, string separator) {
6 | return list == null ? null : string.Join(separator, list);
7 | }
8 | public static string Join(this IEnumerable list, string separator) {
9 | return list == null ? null : string.Join(separator, list);
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/ListExtensions.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 13be9c86cd4a4dc1964dac4450a84185
3 | timeCreated: 1590947746
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/SafeCodeExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace CodeGraph.Editor {
4 | public static class SafeCodeExtensions {
5 | public static string ToSafeVariableName(this string variableName) {
6 | var arr = variableName.ToCharArray();
7 | arr = Array.FindAll(arr, c => char.IsLetterOrDigit(c) || c == '_');
8 | var safeName = new string(arr);
9 | if (safeName.Length > 1 && char.IsDigit(safeName[0])) {
10 | safeName = $"var{safeName} /* ERROR invalid variable name */";
11 | }
12 | return safeName;
13 | }
14 | public static string ToSafeTypeName(this string typeName) {
15 | var arr = typeName.ToCharArray();
16 | arr = Array.FindAll(arr, c => char.IsLetterOrDigit(c) || c == '_');
17 | var safeName = new string(arr);
18 | if (safeName.Length > 1 && char.IsDigit(safeName[0])) {
19 | safeName = $"_{safeName} /* ERROR invalid type name */";
20 | }
21 | return safeName;
22 | }
23 |
24 | public static string ToSafeGUID(this string guid) {
25 | return guid.Replace("-", "_");
26 | }
27 |
28 | public static string GenerateSafeName(string prefix = "variable", string suffix = "") {
29 | var guidStr = Guid.NewGuid().ToString().ToSafeGUID();
30 | return prefix + guidStr + suffix;
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/SafeCodeExtensions.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4cefbfd5132e4cd2afe92a0b299d3b7d
3 | timeCreated: 1582304191
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/VisualElementExtensions.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | using UnityEngine.UIElements;
3 |
4 | namespace CodeGraph.Editor {
5 | public static class VisualElementExtensions {
6 | public static void AddStyleSheet(this VisualElement element, string path) {
7 | var stylesheet = Resources.Load(path);
8 | if(stylesheet == null) Debug.LogWarning($"StyleSheet at path \"{path}\" could not be found");
9 | else element.styleSheets.Add(stylesheet);
10 | }
11 | }
12 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Extensions/VisualElementExtensions.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8a49beb8ddec46a08a2c4066dd9da139
3 | timeCreated: 1582033877
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/GroupData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEditor.Experimental.GraphView;
3 | using UnityEngine;
4 |
5 | namespace CodeGraph.Editor {
6 | [Serializable]
7 | public class GroupData : ISerializationCallbackReceiver {
8 | public Group GroupReference;
9 | public Guid Guid => guid;
10 |
11 | public Guid RewriteGuid() {
12 | guid = Guid.NewGuid();
13 | return guid;
14 | }
15 |
16 | [NonSerialized]
17 | private Guid guid;
18 |
19 | [SerializeField]
20 | private string guidSerialized;
21 |
22 | [SerializeField]
23 | private string title;
24 |
25 | public string Title {
26 | get => title;
27 | set => title = value;
28 | }
29 |
30 |
31 | public GroupData(string title, Group groupReference) {
32 | guid = Guid.NewGuid();
33 | this.title = title;
34 | GroupReference = groupReference;
35 | }
36 |
37 | public void OnBeforeSerialize() {
38 | guidSerialized = guid.ToString();
39 | }
40 |
41 | public void OnAfterDeserialize() {
42 | if (!string.IsNullOrEmpty(guidSerialized)) {
43 | guid = new Guid(guidSerialized);
44 | }
45 | }
46 | }
47 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/GroupData.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d88cf09e9c65418ea7e44470aaba9da5
3 | timeCreated: 1583349587
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9fbb0c8806624d75a1a8071f55a96efe
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphFileOpener.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using System.Text;
3 | using UnityEditor;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | public static class CodeGraphFileOpener {
8 | [UnityEditor.Callbacks.OnOpenAsset(1)]
9 | public static bool OnOpenAsset(int instanceID, int line) {
10 | string assetPath = AssetDatabase.GetAssetPath(instanceID);
11 | if (!assetPath.EndsWith(".codegraph"))
12 | return false; //let unity open it.
13 |
14 | var textGraph = File.ReadAllText(assetPath, Encoding.UTF8);
15 | var graph = JsonUtility.FromJson(textGraph);
16 | var graphObject = ScriptableObject.CreateInstance();
17 | graphObject.Initialize(graph);
18 |
19 | CodeGraph window;
20 | if (CodeGraph.Instance == null) {
21 | window = EditorWindow.GetWindow();
22 | CodeGraph.Instance = window;
23 | } else window = CodeGraph.Instance;
24 |
25 | window.titleContent = new GUIContent($"CodeGraph Editor{(graph.IsMonoBehaviour ? " (MonoBehaviour)" : "")}", Resources.Load("codegraph_256"));
26 | window.SetGraph(graphObject);
27 | window.Initialize();
28 | return true;
29 | }
30 | }
31 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphFileOpener.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0cdb31b225fa4ac2aafa2ff245023752
3 | timeCreated: 1582044206
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphFunctionFileOpener.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using System.Text;
3 | using UnityEditor;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | public static class CodeGraphFunctionFileOpener {
8 |
9 | [UnityEditor.Callbacks.OnOpenAsset (1)]
10 | public static bool OnOpenAsset (int instanceID, int line) {
11 | string assetPath = AssetDatabase.GetAssetPath (instanceID);
12 | if (!assetPath.EndsWith (".codegraphfunction"))
13 | return false; //let unity open it.
14 |
15 | var textGraph = File.ReadAllText (assetPath, Encoding.UTF8);
16 | var graph = JsonUtility.FromJson (textGraph);
17 | var graphObject = ScriptableObject.CreateInstance ();
18 | graphObject.Initialize (graph);
19 |
20 | CodeGraph window;
21 | if (CodeGraph.Instance == null) {
22 | window = EditorWindow.GetWindow();
23 | CodeGraph.Instance = window;
24 | } else window = CodeGraph.Instance;
25 |
26 | window.titleContent = new GUIContent ("CodeGraph Editor", Resources.Load ("codegraph_256"));
27 | window.SetGraph (graphObject);
28 | window.Initialize ();
29 | return true;
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphFunctionFileOpener.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 072c123193e85ca47b07a8f663143ee3
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphFunctionImporter.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using System.Text;
3 | using UnityEditor.Experimental.AssetImporters;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | [ScriptedImporter(13, Extension)]
8 | public class CodeGraphFunctionImporter : ScriptedImporter {
9 | public const string Extension = "codegraphfunction";
10 |
11 | public override void OnImportAsset(AssetImportContext ctx) {
12 | var textGraph = File.ReadAllText(ctx.assetPath, Encoding.UTF8);
13 | var fileIcon = Resources.Load("codegraph_256");
14 | var startIndex = ctx.assetPath.LastIndexOf('/');
15 | var endIndex = ctx.assetPath.LastIndexOf('.');
16 | var graphName = ctx.assetPath.Substring(startIndex + 1, endIndex - startIndex - 1);
17 | // Create new graph object from json
18 | var changes = false;
19 | var graph = JsonUtility.FromJson(textGraph);
20 | if (graph.AssetPath != ctx.assetPath || graph.GraphName != graphName) {
21 | Debug.LogWarning("Detected file inconsistencies. Writing fixes to disk.");
22 | graph.AssetPath = ctx.assetPath;
23 | graph.GraphName = graphName;
24 | File.WriteAllText(ctx.assetPath, JsonUtility.ToJson(graph, true));
25 | changes = true;
26 | }
27 | var codeGraphObject = ScriptableObject.CreateInstance();
28 | codeGraphObject.Initialize(graph);
29 | ctx.AddObjectToAsset("MainAsset", codeGraphObject, fileIcon);
30 | ctx.SetMainObject(codeGraphObject);
31 |
32 |
33 | var windows = Resources.FindObjectsOfTypeAll();
34 | if (windows.Length > 0 && changes) {
35 | windows[0].SetGraph(codeGraphObject);
36 | windows[0].Initialize();
37 | }
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphFunctionImporter.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c39a22cb95a8a5249901c85ecc57bede
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphImporter.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using System.Text;
3 | using UnityEditor.Experimental.AssetImporters;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | [ScriptedImporter(13, Extension)]
8 | public class CodeGraphImporter : ScriptedImporter {
9 | public const string Extension = "codegraph";
10 |
11 | public override void OnImportAsset(AssetImportContext ctx) {
12 | var textGraph = File.ReadAllText(ctx.assetPath, Encoding.UTF8);
13 | var fileIcon = Resources.Load("codegraph_256");
14 | var startIndex = ctx.assetPath.LastIndexOf('/');
15 | var endIndex = ctx.assetPath.LastIndexOf('.');
16 | var graphName = ctx.assetPath.Substring(startIndex + 1, endIndex - startIndex - 1);
17 | // Create new graph object from json
18 | var changes = false;
19 | var graph = JsonUtility.FromJson(textGraph);
20 | if (graph.AssetPath != ctx.assetPath || graph.GraphName != graphName) {
21 | Debug.LogWarning("Detected file inconsistencies. Writing fixes to disk.");
22 | graph.AssetPath = ctx.assetPath;
23 | graph.GraphName = graphName;
24 | File.WriteAllText(ctx.assetPath, JsonUtility.ToJson(graph, true));
25 | changes = true;
26 | }
27 | var codeGraphObject = ScriptableObject.CreateInstance();
28 | codeGraphObject.Initialize(graph);
29 | ctx.AddObjectToAsset("MainAsset", codeGraphObject, fileIcon);
30 | ctx.SetMainObject(codeGraphObject);
31 |
32 |
33 | var windows = Resources.FindObjectsOfTypeAll();
34 | if (windows.Length > 0 && changes) {
35 | windows[0].SetGraph(codeGraphObject);
36 | windows[0].Initialize();
37 | }
38 | }
39 | }
40 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CodeGraphImporter.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 07460e655f664817b635c5535c0eaa71
3 | timeCreated: 1582040923
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CreateCodeGraphFunction.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using UnityEditor;
3 | using UnityEditor.ProjectWindowCallback;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | public class CreateCodeGraphFunction : EndNameEditAction {
8 | // [MenuItem ("Assets/Create/Empty Code Graph Function", false, 0)]
9 | public static void CreateEmptyCodeGraphFunction () {
10 | ProjectWindowUtil.StartNameEditingIfProjectWindowExists (0, CreateInstance (),
11 | "New Code Graph Function.codegraphfunction", Resources.Load ("codegraph_256"), null);
12 | }
13 |
14 | public override void Action (int instanceId, string pathName, string resourceFile) {
15 | var startIndex = pathName.LastIndexOf ('/');
16 | var endIndex = pathName.LastIndexOf ('.');
17 | var graphName = pathName.Substring (startIndex + 1, endIndex - startIndex - 1);
18 | var graph = new CodeGraphData { AssetPath = pathName, GraphName = graphName };
19 | var json = JsonUtility.ToJson (graph, true);
20 | File.WriteAllText (pathName, json);
21 | AssetDatabase.SaveAssets ();
22 | AssetDatabase.Refresh ();
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CreateCodeGraphFunction.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0206579ddc99b7d4588117716dd6ed18
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CreateCodeGraphMonoBehaviour.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using UnityEditor;
3 | using UnityEditor.ProjectWindowCallback;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | public class CreateCodeGraphMonoBehaviour : EndNameEditAction {
8 | [MenuItem("Assets/Create/Empty Code Graph MonoBehaviour", false, 0)]
9 | public static void CreateEmptyCodeGraph() {
10 | ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, CreateInstance(),
11 | "New Code Graph MonoBehaviour.codegraph", Resources.Load("codegraph_256"), null);
12 | }
13 |
14 | public override void Action(int instanceId, string pathName, string resourceFile) {
15 | var startIndex = pathName.LastIndexOf('/');
16 | var endIndex = pathName.LastIndexOf('.');
17 | var graphName = pathName.Substring(startIndex + 1, endIndex - startIndex - 1);
18 | var graph = new CodeGraphData {AssetPath = pathName, GraphName = graphName, IsMonoBehaviour = true};
19 | var json = JsonUtility.ToJson(graph, true);
20 | File.WriteAllText(pathName, json);
21 | AssetDatabase.SaveAssets();
22 | AssetDatabase.Refresh();
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CreateCodeGraphMonoBehaviour.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8ae6aa3fe43f20f4fa3dfe6c8d0e5103
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CreateCodeGraphStandard.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using UnityEditor;
3 | using UnityEditor.ProjectWindowCallback;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | public class CreateCodeGraphStandard : EndNameEditAction {
8 | // [MenuItem ("Assets/Create/Empty Code Graph Class", false, 0)]
9 | public static void CreateEmptyCodeGraph () {
10 | ProjectWindowUtil.StartNameEditingIfProjectWindowExists (0, CreateInstance (),
11 | "New Code Graph Class.codegraph", Resources.Load ("codegraph_256"), null);
12 | }
13 |
14 | public override void Action (int instanceId, string pathName, string resourceFile) {
15 | var startIndex = pathName.LastIndexOf ('/');
16 | var endIndex = pathName.LastIndexOf ('.');
17 | var graphName = pathName.Substring (startIndex + 1, endIndex - startIndex - 1);
18 | var graph = new CodeGraphData { AssetPath = pathName, GraphName = graphName, IsMonoBehaviour = false };
19 | var json = JsonUtility.ToJson (graph, true);
20 | File.WriteAllText (pathName, json);
21 | AssetDatabase.SaveAssets ();
22 | AssetDatabase.Refresh ();
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/IO/CreateCodeGraphStandard.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c44139306b9a4ba45aa324876121d96e
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Interfaces.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fb4f259d0d4148279664f71917ff56aa
3 | timeCreated: 1582212898
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Interfaces/IGroupItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace CodeGraph.Editor {
4 | public interface IGroupItem {
5 | Guid GroupGuid { get; set; }
6 | }
7 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Interfaces/IGroupItem.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fb29747a23134889b30b415d52f7562e
3 | timeCreated: 1582212929
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 77a785073eb74523b9a3d966fe1b371d
3 | timeCreated: 1582033430
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1254f24ccdcc4df0b57d5364280d23f2
3 | timeCreated: 1582223776
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractEndNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | public abstract class AbstractEndNode : AbstractNode {
6 | [Obsolete("End nodes cannot have Output ports", true)]
7 | protected new void AddOutputPort(Port portReference, Func getCode, bool alsoAddToHierarchy = true) {
8 | throw new NotSupportedException("End nodes cannot have Output ports");
9 | }
10 |
11 | public abstract string GetCode();
12 | }
13 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractEndNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5b6e73b5011f45b0a3d7c0a1e9ef82c1
3 | timeCreated: 1582222377
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractEventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2e95d12e719142e2999017ca2cb8afe6
3 | timeCreated: 1582222412
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractMiddleNode.cs:
--------------------------------------------------------------------------------
1 | namespace CodeGraph.Editor {
2 | public abstract class AbstractMiddleNode : AbstractNode {
3 |
4 | }
5 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractMiddleNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 89fdc37da24c47a182c8907604f7a86a
3 | timeCreated: 1582222403
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 892878dc89d040c9804fa5e658eea6ff
3 | timeCreated: 1582033454
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractStartNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | public abstract class AbstractStartNode : AbstractNode {
6 | [Obsolete("Start nodes cannot have Input ports", true)]
7 | public new void AddInputPort(Port portReference, Func requestCode, bool alsoAddToHierarchy = true) {
8 | throw new NotSupportedException("Start nodes cannot have Input ports");
9 | }
10 | }
11 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/Abstracts/AbstractStartNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 178b1c44b9a04a89adac2fa4b30cb4ea
3 | timeCreated: 1582222368
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 09975c06783649d5a127614aa5672524
3 | timeCreated: 1582223822
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/AssignNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | [Node(true, true)]
8 | [Title("Basic", "Assign")]
9 | public class AssignNode : AbstractEndNode{
10 | public AssignNode() {
11 | Initialize("Assign", DefaultNodePosition);
12 | var eventInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Multi, typeof(float));
13 | eventInputPort.portName = "branch";
14 | eventInputPort.portColor = new Color(1,1,1,0.2f);
15 | AddInputPort(eventInputPort, GetCode);
16 |
17 | var lhsPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
18 | lhsPort.portName = "lhs";
19 | AddInputPort(lhsPort, () => {
20 | var connections = lhsPort.connections.ToList();
21 | if (connections.Count == 0) return $"var _{Guid.NewGuid().ToString()} /* WARNING: You probably want connect this node to something. */";
22 | var output = connections[0].output;
23 | var node = output.node as AbstractNode;
24 | if (node == null) return $"var _{Guid.NewGuid().ToString()} /* ERROR: Something went wrong and the connected node ended up as null. */";
25 | return node.OutputPortDictionary[output].GetCode();
26 | });
27 |
28 | var rhsPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
29 | rhsPort.portName = "rhs";
30 | AddInputPort(rhsPort, () => {
31 | var connections = rhsPort.connections.ToList();
32 | if (connections.Count == 0) return $"null /* WARNING: You probably want connect this node to something. */";
33 | var output = connections[0].output;
34 | var node = output.node as AbstractNode;
35 | if (node == null) return $"null /* ERROR: Something went wrong and the connected node ended up as null. */";
36 | return node.OutputPortDictionary[output].GetCode();
37 | });
38 |
39 |
40 |
41 | // titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())){text="Get Code"});
42 | Refresh();
43 | }
44 |
45 | public override string GetCode() {
46 | return $"{InputPorts[1].RequestCode()}={InputPorts[2].RequestCode()};{GetDebugData}";
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/AssignNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 67624c2b62814bd6bc85ba39ae56ef4a
3 | timeCreated: 1582304912
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/CallMethodNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 767a40ef77de49ee85102b7296d79e6b
3 | timeCreated: 1590768092
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/ConditionalNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6335cf6ddf3c43b29d26b59d09d733c5
3 | timeCreated: 1582398184
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/CreateVariableNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7c4259a461b54037bf24e274ec0a2278
3 | timeCreated: 1583086753
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/CustomCodeNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine;
5 | using UnityEngine.UIElements;
6 |
7 | namespace CodeGraph.Editor {
8 | [Node(true, true)]
9 | [Title("Experimental", "Custom Code")]
10 | public class CustomCodeNode : AbstractEndNode {
11 | public string CustomCode = "";
12 | public CustomCodeNode() {
13 | Initialize("Custom Code", DefaultNodePosition);
14 | var eventInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Multi, typeof(float));
15 | eventInputPort.portName = "branch";
16 | eventInputPort.portColor = new Color(1,1,1,0.2f);
17 | AddInputPort(eventInputPort, GetCode);
18 |
19 | var propertyType = new TextField(int.MaxValue, true, false, ' ') {label = "Code"};
20 | propertyType.labelElement.style.minWidth = 0;
21 | propertyType.name = "customCode";
22 | propertyType.RegisterValueChangedCallback(evt => {
23 | CodeGraph.Instance.InvalidateSaveButton();
24 | CustomCode = evt.newValue;
25 | });
26 | inputContainer.Add(propertyType);
27 |
28 | // Experimental warning
29 | var container = new VisualElement();
30 | container.AddToClassList("experimental-warning");
31 | var text = new TextElement {text = "This node is experimental and\ncan lead to problems. Use this\nif you know what you're doing."};
32 | container.contentContainer.Add(text);
33 | extensionContainer.Add(container);
34 | Refresh();
35 | }
36 |
37 | public override string GetCode() {
38 | return $"{CustomCode}{GetDebugData}";
39 | }
40 |
41 | public override string GetNodeData() {
42 | var root = new JObject();
43 | root["CustomCode"] = CustomCode;
44 | root.Merge(JObject.Parse(base.GetNodeData()));
45 | return root.ToString(Formatting.None);
46 | }
47 |
48 | public override void SetNodeData(string jsonData) {
49 | base.SetNodeData(jsonData);
50 | var root = JObject.Parse(jsonData);
51 | CustomCode = root.Value("CustomCode");
52 | inputContainer.Q("customCode").SetValueWithoutNotify(CustomCode);
53 | }
54 | }
55 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/CustomCodeNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6d48caeedb02405f9593a46dca696e72
3 | timeCreated: 1583080895
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/DoNTimesNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 56bc9fd9c5ca43c3a09f9ee3b3913c17
3 | timeCreated: 1583087634
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/DoWithEachNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9eed043bdaff429187db3ee07a399fa0
3 | timeCreated: 1583089003
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/InstantiateNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6fa1c3a4fca54f35bef582171c9dbd04
3 | timeCreated: 1583347761
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/PrintNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 | using UnityEngine;
4 |
5 | namespace CodeGraph.Editor {
6 | [Node(true, true)]
7 | [Title("Mono", "Print")]
8 | public class PrintNode : AbstractEndNode {
9 | public PrintNode() {
10 | Initialize("Print", DefaultNodePosition);
11 | var eventInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Multi, typeof(float));
12 | eventInputPort.portName = "branch";
13 | eventInputPort.portColor = new Color(1,1,1,0.2f);
14 | AddInputPort(eventInputPort, GetCode);
15 |
16 | var printInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
17 | printInputPort.portName = "value";
18 | AddInputPort(printInputPort, () => {
19 | var connections = printInputPort.connections.ToList();
20 | if (connections.Count == 0) return $"\"\" /* WARNING: You probably want connect this node to something. */";
21 | var output = connections[0].output;
22 | var node = output.node as AbstractNode;
23 | if (node == null) return $"\"\" /* ERROR: Something went wrong and the connected node ended up as null. */";
24 | return node.OutputPortDictionary[output].GetCode();
25 | });
26 |
27 | // titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())){text="Get Code"});
28 | Refresh();
29 | }
30 |
31 | public override string GetCode() {
32 | return $"Debug.Log({InputPorts[1].RequestCode()});{GetDebugData}";
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/PrintNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9a1e78cac30144149c5320b4e87c42ba
3 | timeCreated: 1582223845
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/ReturnNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 | using UnityEngine;
4 |
5 | namespace CodeGraph.Editor {
6 | [Node(true, true)]
7 | [Title("Basic", "Functions", "Return")]
8 | public class ReturnNode : AbstractEndNode {
9 |
10 | public ReturnNode() {
11 | Initialize("Return", DefaultNodePosition);
12 | var eventInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Multi, typeof(float));
13 | eventInputPort.portName = "branch";
14 | eventInputPort.portColor = new Color(1,1,1,0.2f);
15 | AddInputPort(eventInputPort, GetCode);
16 |
17 | var printInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
18 | printInputPort.portName = "value";
19 | AddInputPort(printInputPort, () => {
20 | var connections = printInputPort.connections.ToList();
21 | if (connections.Count == 0) return $" /* WARNING: You probably want connect this node to something. */";
22 | var output = connections[0].output;
23 | var node = output.node as AbstractNode;
24 | if (node == null) return $" /* ERROR: Something went wrong and the connected node ended up as null. */";
25 | return node.OutputPortDictionary[output].GetCode();
26 | });
27 | }
28 | public override string GetCode() {
29 | return $"return {InputPorts[1].RequestCode()});{GetDebugData}";
30 | }
31 | }
32 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/ReturnNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: db816d935d9d448da6ec2c1ffd36d00f
3 | timeCreated: 1590579789
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/WhileNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph.Editor {
7 | [Node(true, true)]
8 | [Title("Basic", "Loops", "While")]
9 | public class WhileNode : AbstractEndNode {
10 | public WhileNode() {
11 | Initialize("While", DefaultNodePosition);
12 | var eventInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Multi, typeof(float));
13 | eventInputPort.portName = "branch";
14 | eventInputPort.portColor = new Color(1,1,1,0.2f);
15 | AddInputPort(eventInputPort, GetCode);
16 | var countPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
17 | countPort.portName = "condition";
18 | AddInputPort(countPort, () => {
19 | var connections = countPort.connections.ToList();
20 | if (connections.Count == 0) return $"false /* WARNING: You probably want connect this node to something. */";
21 | var output = connections[0].output;
22 | var node = output.node as AbstractNode;
23 | if (node == null) return $"false /* ERROR: Something went wrong and the connected node ended up as null. */";
24 | return node.OutputPortDictionary[output].GetCode();
25 | });
26 | var loopPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Single, typeof(float));
27 | loopPort.portName = "loop block";
28 | loopPort.portColor = new Color(1,1,1,0.2f);
29 | AddOutputPort(loopPort, () => "");
30 | }
31 |
32 | public override string GetCode() {
33 | var code = $"while({InputPorts[1].RequestCode()}) {{\n";
34 | var connections = OutputPorts[0].PortReference.connections.ToList();
35 | if (connections.Count != 0) {
36 | var input = connections[0].input;
37 | if (input.node is AbstractEventNode node) {
38 | code += node.GetCode();
39 | } else if (input.node is AbstractEndNode node2) {
40 | code += node2.GetCode();
41 | }
42 | }
43 | code += "\n}";
44 | return code;
45 | }
46 |
47 | private new void AddOutputPort(Port portReference, Func getCode, bool alsoAddToHierarchy = true) {
48 | var outputPort = new OutputPort(this, portReference, getCode);
49 | OutputPorts.Add(outputPort);
50 | OutputPortDictionary.Add(portReference, outputPort);
51 | if(alsoAddToHierarchy) outputContainer.Add(portReference);
52 | }
53 | }
54 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EndNodes/WhileNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8cf3ef5f2c5e49f0a39828e5a1f776fe
3 | timeCreated: 1583089657
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 932d1b30b1874848adb8853a65f48f3d
3 | timeCreated: 1582226464
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/AwakeEventNode.cs:
--------------------------------------------------------------------------------
1 | using System.Text;
2 | using UnityEngine.UIElements;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(false, true)]
6 | [Title("Events", "Awake Event")]
7 | public class AwakeEventNode : AbstractEventNode {
8 | public AwakeEventNode() {
9 | Initialize("Awake", DefaultNodePosition);
10 | // titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())) {text = "Get Code"});
11 | titleButtonContainer.Add(new Button(() => AddChildPort()) {text = "Add New Port"});
12 | // titleButtonContainer.Add(new Button(CleanPorts) {text = "Clean Ports"});
13 | Refresh();
14 | }
15 |
16 | public override string GetCode() {
17 | var code = new StringBuilder();
18 | code.AppendLine("private void Awake() {");
19 | code.Append(GetEventCode());
20 | code.AppendLine("}");
21 | return code.ToString();
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/AwakeEventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 129e9c6192b94b12ad0854da0172426a
3 | timeCreated: 1582415256
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/EventExtenderNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text;
3 | using Newtonsoft.Json;
4 | using Newtonsoft.Json.Linq;
5 | using UnityEditor.Experimental.GraphView;
6 | using UnityEngine;
7 | using UnityEngine.UIElements;
8 |
9 | namespace CodeGraph.Editor {
10 | [Node(true, true)]
11 | [Title("Events", "Event Extender")]
12 | public class EventExtenderNode : AbstractEventNode {
13 | public string SourceTitle = "none";
14 | public EventExtenderNode() {
15 | IsBaseEventNode = false;
16 | Initialize("EXTENDER (none)", DefaultNodePosition);
17 | // titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())) {text = "Get Code"});
18 | titleButtonContainer.Add(new Button(() => AddChildPort()) {text = "Add New Port"});
19 | titleButtonContainer.Add(new Button(() => CleanPorts()) {text = "Clean Ports"});
20 | var eventPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
21 | eventPort.portName = "branch";
22 | eventPort.portColor = new Color(1,1,1,0.2f);
23 | AddInputPort(eventPort, () => "");
24 | Refresh();
25 | }
26 |
27 | public override string GetNodeData() {
28 | var root = new JObject();
29 | root["SourceTitle"] = SourceTitle;
30 | root.Merge(JObject.Parse(base.GetNodeData()));
31 | return root.ToString(Formatting.None);
32 | }
33 |
34 | public override void SetNodeData(string jsonData) {
35 | base.SetNodeData(jsonData);
36 | var root = JObject.Parse(jsonData);
37 | SourceTitle = root.Value("SourceTitle");
38 | UpdateSourceTitle(SourceTitle);
39 | }
40 |
41 | public override string GetCode() {
42 | var code = new StringBuilder();
43 | code.Append(GetEventCode());
44 | return code.ToString();
45 | }
46 |
47 | private new void AddInputPort(Port portReference, Func requestCode, bool alsoAddToHierarchy = true) {
48 | var inputPort = new InputPort(this, portReference, requestCode);
49 | InputPorts.Add(inputPort);
50 | InputPortDictionary.Add(portReference, inputPort);
51 | if(alsoAddToHierarchy) inputContainer.Add(portReference);
52 | }
53 |
54 | public void UpdateSourceTitle(string otherTitle) {
55 | base.title = $"EXTENDER ({otherTitle})";
56 | SourceTitle = otherTitle;
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/EventExtenderNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4ce19f9a1e6745e3a438bfc72fdfebed
3 | timeCreated: 1582298550
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/FixedUpdateEventNode.cs:
--------------------------------------------------------------------------------
1 | using System.Text;
2 | using UnityEngine.UIElements;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(false, true)]
6 | [Title("Events", "Fixed Update Event")]
7 | public class FixedUpdateEventNode : AbstractEventNode {
8 | public FixedUpdateEventNode() {
9 | Initialize("Fixed Update", DefaultNodePosition);
10 | // titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())) {text = "Get Code"});
11 | titleButtonContainer.Add(new Button(() => AddChildPort()) {text = "Add New Port"});
12 | // titleButtonContainer.Add(new Button(CleanPorts) {text = "Clean Ports"});
13 | Refresh();
14 | }
15 |
16 | public override string GetCode() {
17 | var code = new StringBuilder();
18 | code.AppendLine("private void FixedUpdate() {");
19 | code.Append(GetEventCode());
20 | code.AppendLine("}");
21 | return code.ToString();
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/FixedUpdateEventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4c2b76d428c748a5b678f675ca0a7917
3 | timeCreated: 1582415216
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/LateUpdateEventNode.cs:
--------------------------------------------------------------------------------
1 | using System.Text;
2 | using UnityEngine.UIElements;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(false, true)]
6 | [Title("Events", "Late Update Event")]
7 | public class LateUpdateEventNode : AbstractEventNode {
8 | public LateUpdateEventNode() {
9 | Initialize("Late Update", DefaultNodePosition);
10 | // titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())) {text = "Get Code"});
11 | titleButtonContainer.Add(new Button(() => AddChildPort()) {text = "Add New Port"});
12 | // titleButtonContainer.Add(new Button(CleanPorts) {text = "Clean Ports"});
13 | Refresh();
14 | }
15 |
16 | public override string GetCode() {
17 | var code = new StringBuilder();
18 | code.AppendLine("private void LateUpdate() {");
19 | code.Append(GetEventCode());
20 | code.AppendLine("}");
21 | return code.ToString();
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/LateUpdateEventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3ed4c449be654c5abbd03ab9a0231a1e
3 | timeCreated: 1582415089
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/OtherUnityEvents.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 961599a6376043078e0c78f9d564532b
3 | timeCreated: 1582473272
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/StartEventNode.cs:
--------------------------------------------------------------------------------
1 | using System.Text;
2 | using UnityEngine.UIElements;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(false, true)]
6 | [Title("Events", "Start Event")]
7 | public class StartEventNode : AbstractEventNode {
8 | public StartEventNode() {
9 | Initialize("Start", DefaultNodePosition);
10 | //titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())) {text = "Get Code"});
11 | titleButtonContainer.Add(new Button(() => AddChildPort()) {text = "Add New Port"});
12 | // titleButtonContainer.Add(new Button(CleanPorts) {text = "Clean Ports"});
13 | Refresh();
14 | }
15 |
16 | public override string GetCode() {
17 | var code = new StringBuilder();
18 | code.AppendLine("private void Start() {");
19 | code.Append(GetEventCode());
20 | code.AppendLine("}");
21 | return code.ToString();
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/StartEventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f592b47f6e43498ca9a94bdb514941af
3 | timeCreated: 1582226475
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/UpdateEventNode.cs:
--------------------------------------------------------------------------------
1 | using System.Text;
2 | using UnityEngine.UIElements;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(false, true)]
6 | [Title("Events", "Update Event")]
7 | public class UpdateEventNode : AbstractEventNode {
8 | public UpdateEventNode() {
9 | Initialize("Update", DefaultNodePosition);
10 | // titleButtonContainer.Add(new Button(() => Debug.Log(GetCode())) {text = "Get Code"});
11 | titleButtonContainer.Add(new Button(() => AddChildPort()) {text = "Add New Port"});
12 | // titleButtonContainer.Add(new Button(CleanPorts) {text = "Clean Ports"});
13 | Refresh();
14 | }
15 |
16 | public override string GetCode() {
17 | var code = new StringBuilder();
18 | code.AppendLine("private void Update() {");
19 | code.Append(GetEventCode());
20 | code.AppendLine("}");
21 | return code.ToString();
22 | }
23 | }
24 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/EventNodes/UpdateEventNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 16ac5eeee91c4f4a9df98eba5c9debdb
3 | timeCreated: 1582227964
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6fcb03503e9d4f30963a4ca68e0c2440
3 | timeCreated: 1582225583
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/AddNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Basic", "Math", "Add")]
7 | public class AddNode : AbstractMiddleNode {
8 | public AddNode() {
9 | Initialize("Add", DefaultNodePosition);
10 | var firstInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | firstInputPort.portName = "first";
12 | AddInputPort(firstInputPort, () => {
13 | var connections = firstInputPort.connections.ToList();
14 | if (connections.Count == 0) return $"((object)0)/* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"((object)0) /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 | var secondInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
21 | secondInputPort.portName = "second";
22 | AddInputPort(secondInputPort, () => {
23 | var connections = secondInputPort.connections.ToList();
24 | if (connections.Count == 0) return $"((object)null)/* WARNING: You probably want connect this node to something. */";
25 | var output = connections[0].output;
26 | var node = output.node as AbstractNode;
27 | if (node == null) return $"((object)null) /* ERROR: Something went wrong and the connected node ended up as null. */";
28 | return node.OutputPortDictionary[output].GetCode();
29 | });
30 | var equalsOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
31 | equalsOutputPort.portName = "result";
32 | AddOutputPort(equalsOutputPort, () => $"{InputPortDictionary[firstInputPort].RequestCode()}+{InputPortDictionary[secondInputPort].RequestCode()}");
33 | Refresh();
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/AddNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5423505080384551b9e2c1ce23a94dc1
3 | timeCreated: 1582414338
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/CompareNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 12a7e0f3e68b4121bc9ba5e20f68ea94
3 | timeCreated: 1582411389
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/DivideNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Basic", "Math", "Divide")]
7 | public class DivideNode : AbstractMiddleNode {
8 | public DivideNode() {
9 | Initialize("Divide", DefaultNodePosition);
10 | var firstInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | firstInputPort.portName = "first";
12 | AddInputPort(firstInputPort, () => {
13 | var connections = firstInputPort.connections.ToList();
14 | if (connections.Count == 0) return $"((object)0)/* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"((object)0) /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 | var secondInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
21 | secondInputPort.portName = "second";
22 | AddInputPort(secondInputPort, () => {
23 | var connections = secondInputPort.connections.ToList();
24 | if (connections.Count == 0) return $"((object)null)/* WARNING: You probably want connect this node to something. */";
25 | var output = connections[0].output;
26 | var node = output.node as AbstractNode;
27 | if (node == null) return $"((object)null) /* ERROR: Something went wrong and the connected node ended up as null. */";
28 | return node.OutputPortDictionary[output].GetCode();
29 | });
30 | var equalsOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
31 | equalsOutputPort.portName = "result";
32 | AddOutputPort(equalsOutputPort, () => $"{InputPortDictionary[firstInputPort].RequestCode()}/{InputPortDictionary[secondInputPort].RequestCode()}");
33 | Refresh();
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/DivideNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e0f718a583324a2eb638eadfdebc522a
3 | timeCreated: 1583085697
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/GetComponentNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8bfd84967d94454293f09acf8570f95d
3 | timeCreated: 1582415410
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/GetPositionNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Mono", "Transform", "Get Position")]
7 | public class GetPositionNode : AbstractMiddleNode{
8 | public GetPositionNode() {
9 | Initialize("Get Position", DefaultNodePosition);
10 | var inputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | inputPort.portName = "transformable";
12 | AddInputPort(inputPort, () => {
13 | var connections = inputPort.connections.ToList();
14 | if (connections.Count == 0) return $"new Transform() /* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"new Transform() /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 |
21 | var outputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
22 | outputPort.portName = "(3)";
23 | AddOutputPort(outputPort, () => $"{InputPortDictionary[inputPort].RequestCode()}.position");
24 | Refresh();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/GetPositionNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 48d7ce4469024e56957de33c9d4a9a8b
3 | timeCreated: 1582305492
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/GetTransformNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Mono", "Transform", "Get Transform")]
7 | public class GetTransformNode : AbstractMiddleNode{
8 | public GetTransformNode() {
9 | Initialize("Get Transform", DefaultNodePosition);
10 | var inputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | inputPort.portName = "gameobject";
12 | AddInputPort(inputPort, () => {
13 | var connections = inputPort.connections.ToList();
14 | if (connections.Count == 0) return $"new GameObject() /* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"new GameObject() /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 |
21 | var outputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
22 | outputPort.portName = "transform";
23 | AddOutputPort(outputPort, () => $"{InputPortDictionary[inputPort].RequestCode()}.transform");
24 | Refresh();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/GetTransformNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8b6ff447d2f440ebb4990e3c22bfea8b
3 | timeCreated: 1582305933
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/InputNodes.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ed68cbf905b049dbb8669a8115d2be8f
3 | timeCreated: 1583084590
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/MultiplyNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Basic", "Math", "Multiply")]
7 | public class MultiplyNode : AbstractMiddleNode {
8 | public MultiplyNode() {
9 | Initialize("Multiply", DefaultNodePosition);
10 | var firstInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | firstInputPort.portName = "first";
12 | AddInputPort(firstInputPort, () => {
13 | var connections = firstInputPort.connections.ToList();
14 | if (connections.Count == 0) return $"((object)0)/* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"((object)0) /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 | var secondInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
21 | secondInputPort.portName = "second";
22 | AddInputPort(secondInputPort, () => {
23 | var connections = secondInputPort.connections.ToList();
24 | if (connections.Count == 0) return $"((object)null)/* WARNING: You probably want connect this node to something. */";
25 | var output = connections[0].output;
26 | var node = output.node as AbstractNode;
27 | if (node == null) return $"((object)null) /* ERROR: Something went wrong and the connected node ended up as null. */";
28 | return node.OutputPortDictionary[output].GetCode();
29 | });
30 | var equalsOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
31 | equalsOutputPort.portName = "result";
32 | AddOutputPort(equalsOutputPort, () => $"{InputPortDictionary[firstInputPort].RequestCode()}*{InputPortDictionary[secondInputPort].RequestCode()}");
33 | Refresh();
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/MultiplyNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 731e573e55724148b9fe22471642b661
3 | timeCreated: 1583085649
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/QuaternionEulerNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f9c8bc1e9cce4713b36aa3608d774d2b
3 | timeCreated: 1583347209
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/QuaternionGetEulerAnglesNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 | using UnityEngine;
4 |
5 | namespace CodeGraph.Editor {
6 | [Node(true, true)]
7 | [Title("Math", "Quaternion", "Quaternion Euler Angles")]
8 | public class QuaternionGetEulerAnglesNode : AbstractMiddleNode {
9 | public QuaternionGetEulerAnglesNode() {
10 | Initialize("Quaternion Euler Angles", DefaultNodePosition);
11 | var xInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
12 | xInputPort.portName = "Q";
13 | AddInputPort(xInputPort, () => {
14 | var connections = xInputPort.connections.ToList();
15 | if (connections.Count == 0) return $"Quaternion.identity /* WARNING: You probably want connect this node to something. */";
16 | var output = connections[0].output;
17 | var node = output.node as AbstractNode;
18 | if (node == null) return $"Quaternion.identity /* ERROR: Something went wrong and the connected node ended up as null. */";
19 | return node.OutputPortDictionary[output].GetCode();
20 | });
21 | var vector3OutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
22 | vector3OutputPort.portName = "(3)";
23 | AddOutputPort(vector3OutputPort, () => $"{InputPorts[0].RequestCode()}.eulerAngles");
24 | Refresh();
25 | }
26 |
27 | public override void OnCreateFromSearchWindow(Vector2 nodePosition) {
28 | var position = new Rect(nodePosition, DefaultNodeSize);
29 | position.center += new Vector2(-DefaultNodeSize.x, 0f);
30 | CreateAndConnectNode(position, 0, 0, this);
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/QuaternionGetEulerAnglesNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d2a6d36e6469444cb711f7533ba10bd8
3 | timeCreated: 1583347360
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/QuaternionNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d866c0102c6a4f6a9a4146d41e7b2a4c
3 | timeCreated: 1583346963
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/SplitTransformNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 60afae50a4cf49138b2ce76a90183c51
3 | timeCreated: 1582307339
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/SplitVector2Node.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Math", "Vectors", "Split Vector2")]
7 | public class SplitVector2Node : AbstractMiddleNode {
8 | public SplitVector2Node() {
9 | Initialize("Split Vector2", DefaultNodePosition);
10 | var inputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | inputPort.portName = "(2)";
12 | AddInputPort(inputPort, () => {
13 | var connections = inputPort.connections.ToList();
14 | if (connections.Count == 0) return $"new Vector2(0.0f,0.0f) /* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"new Vector2(0.0f,0.0f) /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 |
21 | var xOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
22 | xOutputPort.portName = "x";
23 | var yOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
24 | yOutputPort.portName = "y";
25 | AddOutputPort(xOutputPort, () => $"{InputPortDictionary[inputPort].RequestCode()}.x");
26 | AddOutputPort(yOutputPort, () => $"{InputPortDictionary[inputPort].RequestCode()}.y");
27 | Refresh();
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/SplitVector2Node.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 62cb30ec19d44224aa6fee46e9ebcddf
3 | timeCreated: 1582307132
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/SplitVector3Node.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Math", "Vectors", "Split Vector3")]
7 | public class SplitVector3Node : AbstractMiddleNode {
8 | public SplitVector3Node() {
9 | Initialize("Split Vector3", DefaultNodePosition);
10 | var vector3InputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | vector3InputPort.portName = "(3)";
12 | AddInputPort(vector3InputPort, () => {
13 | var connections = vector3InputPort.connections.ToList();
14 | if (connections.Count == 0) return $"new Vector3(0.0f,0.0f,0.0f) /* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"new Vector3(0.0f,0.0f,0.0f) /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 |
21 | var xOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
22 | xOutputPort.portName = "x";
23 | var yOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
24 | yOutputPort.portName = "y";
25 | var zOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
26 | zOutputPort.portName = "z";
27 | AddOutputPort(xOutputPort, () => $"{InputPortDictionary[vector3InputPort].RequestCode()}.x");
28 | AddOutputPort(yOutputPort, () => $"{InputPortDictionary[vector3InputPort].RequestCode()}.y");
29 | AddOutputPort(zOutputPort, () => $"{InputPortDictionary[vector3InputPort].RequestCode()}.z");
30 | Refresh();
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/SplitVector3Node.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7fb633432c93451dba752fc6a781bf93
3 | timeCreated: 1582226002
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/SubtractNode.cs:
--------------------------------------------------------------------------------
1 | using System.Linq;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | [Node(true, true)]
6 | [Title("Basic", "Math", "Subtract")]
7 | public class SubtractNode : AbstractMiddleNode {
8 | public SubtractNode() {
9 | Initialize("Subtract", DefaultNodePosition);
10 | var firstInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
11 | firstInputPort.portName = "first";
12 | AddInputPort(firstInputPort, () => {
13 | var connections = firstInputPort.connections.ToList();
14 | if (connections.Count == 0) return $"((object)0)/* WARNING: You probably want connect this node to something. */";
15 | var output = connections[0].output;
16 | var node = output.node as AbstractNode;
17 | if (node == null) return $"((object)0) /* ERROR: Something went wrong and the connected node ended up as null. */";
18 | return node.OutputPortDictionary[output].GetCode();
19 | });
20 | var secondInputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Input, Port.Capacity.Single, typeof(float));
21 | secondInputPort.portName = "second";
22 | AddInputPort(secondInputPort, () => {
23 | var connections = secondInputPort.connections.ToList();
24 | if (connections.Count == 0) return $"((object)null)/* WARNING: You probably want connect this node to something. */";
25 | var output = connections[0].output;
26 | var node = output.node as AbstractNode;
27 | if (node == null) return $"((object)null) /* ERROR: Something went wrong and the connected node ended up as null. */";
28 | return node.OutputPortDictionary[output].GetCode();
29 | });
30 | var equalsOutputPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
31 | equalsOutputPort.portName = "result";
32 | AddOutputPort(equalsOutputPort, () => $"{InputPortDictionary[firstInputPort].RequestCode()}-{InputPortDictionary[secondInputPort].RequestCode()}");
33 | Refresh();
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/SubtractNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e5ececc6dfca4306aefb78d4190a0450
3 | timeCreated: 1583085677
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/Vector2Node.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c44bbbd671db49ce8f536e2271e08f51
3 | timeCreated: 1582307176
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/MiddleNodes/Vector3Node.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 905b371dbaa34047ba3be1f4ccccc692
3 | timeCreated: 1582225607
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 785afd6d3cbb42a8b3b0f519a512e384
3 | timeCreated: 1582225319
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7b0a83ab68414c51a324cdb9c5c9cc02
3 | timeCreated: 1590581647
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/BoolNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine.UIElements;
5 |
6 | namespace CodeGraph.Editor {
7 | [Node(true, true)]
8 | [Title("Basic", "Value Input", "Boolean Input")]
9 | public class BoolNode : AbstractStartNode {
10 | private bool value;
11 |
12 | public BoolNode() {
13 | Initialize("Boolean", DefaultNodePosition);
14 | var inputField = new Toggle {label = "x:", value = false};
15 | inputField.labelElement.style.minWidth = 0;
16 | inputField.RegisterValueChangedCallback(evt => {
17 | CodeGraph.Instance.InvalidateSaveButton();
18 | value = evt.newValue;
19 | });
20 | inputContainer.Add(inputField);
21 |
22 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
23 | valuePort.portName = "value";
24 | AddOutputPort(valuePort, () => $"{value.ToString().ToLower()}");
25 | Refresh();
26 | }
27 |
28 | public override string GetNodeData() {
29 | var root = new JObject();
30 | root["value"] = value;
31 | root.Merge(JObject.Parse(base.GetNodeData()));
32 | return root.ToString(Formatting.None);
33 | }
34 |
35 | public override void SetNodeData(string jsonData) {
36 | base.SetNodeData(jsonData);
37 | var root = JObject.Parse(jsonData);
38 | value = root.Value("value");
39 | inputContainer.Q().SetValueWithoutNotify(value);
40 | }
41 | }
42 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/BoolNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 66c7935ef4db43dfb72f26e20c21d6a0
3 | timeCreated: 1583346482
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/CreatePropertyNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEngine.UIElements;
4 |
5 | namespace CodeGraph.Editor {
6 | [Node(true, true)]
7 | [Title("Basic", "Create Property")]
8 | public class CreatePropertyNode : AbstractStartNode {
9 | private string PropertyName = "varName";
10 | private string PropertyType = "int";
11 |
12 | public CreatePropertyNode() {
13 | Initialize("Create Property", DefaultNodePosition);
14 |
15 | var propertyType = new TextField {label = "Type:", value = "int"};
16 | propertyType.labelElement.style.minWidth = 0;
17 | propertyType.name = "propertyType";
18 | propertyType.RegisterValueChangedCallback(evt => {
19 | CodeGraph.Instance.InvalidateSaveButton();
20 | PropertyType = evt.newValue;
21 | });
22 | inputContainer.Add(propertyType);
23 |
24 | var propertyName = new TextField {label = "Name:", value = "varName"};
25 | propertyName.labelElement.style.minWidth = 0;
26 | propertyName.name = "propertyName";
27 | propertyName.RegisterValueChangedCallback(evt => {
28 | CodeGraph.Instance.InvalidateSaveButton();
29 | PropertyName = evt.newValue;
30 | });
31 | inputContainer.Add(propertyName);
32 | Refresh();
33 | }
34 |
35 | public string GetCode() {
36 | return $"public {PropertyType.ToSafeTypeName()} {PropertyName.ToSafeVariableName()};{GetDebugData}";
37 | }
38 |
39 | public override string GetNodeData() {
40 | var root = new JObject();
41 | root["PropertyName"] = PropertyName;
42 | root["PropertyType"] = PropertyType;
43 | root.Merge(JObject.Parse(base.GetNodeData()));
44 | return root.ToString(Formatting.None);
45 | }
46 |
47 | public override void SetNodeData(string jsonData) {
48 | base.SetNodeData(jsonData);
49 | var root = JObject.Parse(jsonData);
50 | PropertyName = root.Value("PropertyName");
51 | PropertyType = root.Value("PropertyType");
52 | inputContainer.Q("propertyName").SetValueWithoutNotify(PropertyName);
53 | inputContainer.Q("propertyType").SetValueWithoutNotify(PropertyType);
54 | }
55 | }
56 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/CreatePropertyNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 98602666630648f28890de1c51e716fc
3 | timeCreated: 1582303640
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/DoubleNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEditor.UIElements;
5 | using UnityEngine.UIElements;
6 |
7 | namespace CodeGraph.Editor {
8 | [Node(true, true)]
9 | [Title("Basic", "Value Input", "Double Input")]
10 | public class DoubleNode : AbstractStartNode {
11 | private double value;
12 |
13 | public DoubleNode() {
14 | Initialize("Double", DefaultNodePosition);
15 | var inputField = new DoubleField {label = "x:", value = 0};
16 | inputField.labelElement.style.minWidth = 0;
17 | inputField.RegisterValueChangedCallback(evt => {
18 | CodeGraph.Instance.InvalidateSaveButton();
19 | value = evt.newValue;
20 | });
21 | inputContainer.Add(inputField);
22 |
23 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
24 | valuePort.portName = "value";
25 | AddOutputPort(valuePort, () => $"{value}d");
26 | Refresh();
27 | }
28 |
29 | public override string GetNodeData() {
30 | var root = new JObject();
31 | root["value"] = value;
32 | root.Merge(JObject.Parse(base.GetNodeData()));
33 | return root.ToString(Formatting.None);
34 | }
35 |
36 | public override void SetNodeData(string jsonData) {
37 | base.SetNodeData(jsonData);
38 | var root = JObject.Parse(jsonData);
39 | value = root.Value("value");
40 | inputContainer.Q().SetValueWithoutNotify(value);
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/DoubleNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d73ca7cb67d24a4e8158cf3ca5cb0a95
3 | timeCreated: 1582308040
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/FloatNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEditor.UIElements;
5 | using UnityEngine.UIElements;
6 |
7 | namespace CodeGraph.Editor {
8 | [Node(true, true)]
9 | [Title("Basic", "Value Input", "Float Input")]
10 | public class FloatNode : AbstractStartNode {
11 | private float value;
12 |
13 | public FloatNode() {
14 | Initialize("Float", DefaultNodePosition);
15 | var inputField = new FloatField {label = "x:", value = 0};
16 | inputField.labelElement.style.minWidth = 0;
17 | inputField.RegisterValueChangedCallback(evt => {
18 | CodeGraph.Instance.InvalidateSaveButton();
19 | value = evt.newValue;
20 | });
21 | inputContainer.Add(inputField);
22 |
23 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
24 | valuePort.portName = "value";
25 | AddOutputPort(valuePort, () => $"{value}f");
26 | Refresh();
27 | }
28 |
29 | public override string GetNodeData() {
30 | var root = new JObject();
31 | root["value"] = value;
32 | root.Merge(JObject.Parse(base.GetNodeData()));
33 | return root.ToString(Formatting.None);
34 | }
35 |
36 | public override void SetNodeData(string jsonData) {
37 | base.SetNodeData(jsonData);
38 | var root = JObject.Parse(jsonData);
39 | value = root.Value("value");
40 | inputContainer.Q().SetValueWithoutNotify(value);
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/FloatNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 64ddf2ebfa9e47c6bea86d1f7d87da41
3 | timeCreated: 1582225326
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/GetPropertyNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine.UIElements;
5 |
6 | namespace CodeGraph.Editor {
7 | [Node(true, true)]
8 | [Title("Basic", "Get Property")]
9 | public class GetPropertyNode : AbstractStartNode {
10 | private string PropertyName = "varName";
11 |
12 | public GetPropertyNode() {
13 | Initialize("Get Property", DefaultNodePosition);
14 | var propertyNameField = new TextField {label = "Name: ", value = "varName"};
15 | propertyNameField.labelElement.style.minWidth = 0;
16 | propertyNameField.RegisterValueChangedCallback(evt => {
17 | CodeGraph.Instance.InvalidateSaveButton();
18 | PropertyName = evt.newValue;
19 | });
20 | inputContainer.Add(propertyNameField);
21 |
22 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
23 | valuePort.portName = "value";
24 | AddOutputPort(valuePort, () => $"{PropertyName}");
25 | Refresh();
26 | }
27 |
28 | public override string GetNodeData() {
29 | var root = new JObject();
30 | root["PropertyName"] = PropertyName;
31 | root.Merge(JObject.Parse(base.GetNodeData()));
32 | return root.ToString(Formatting.None);
33 | }
34 |
35 | public override void SetNodeData(string jsonData) {
36 | base.SetNodeData(jsonData);
37 | var root = JObject.Parse(jsonData);
38 | PropertyName = root.Value("PropertyName");
39 | inputContainer.Q().SetValueWithoutNotify(PropertyName);
40 | }
41 | }
42 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/GetPropertyNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3076f0e310aacf141857ce94512320a6
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/GetVariableNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine.UIElements;
5 |
6 | namespace CodeGraph.Editor {
7 | [Node(true, true)]
8 | [Title("Basic", "Get Variable")]
9 | public class GetVariableNode : AbstractStartNode {
10 | private string VariableName = "varName";
11 | public GetVariableNode() {
12 | Initialize("Get Variable", DefaultNodePosition);
13 | var variableNameField = new TextField {label = "Name: ", value = "varName"};
14 | variableNameField.labelElement.style.minWidth = 0;
15 | variableNameField.RegisterValueChangedCallback(evt => {
16 | CodeGraph.Instance.InvalidateSaveButton();
17 | VariableName = evt.newValue;
18 | });
19 | inputContainer.Add(variableNameField);
20 |
21 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
22 | valuePort.portName = "value";
23 | AddOutputPort(valuePort, () => $"{VariableName}");
24 | Refresh();
25 | }
26 |
27 | public override string GetNodeData() {
28 | var root = new JObject();
29 | root["VariableName"] = VariableName;
30 | root.Merge(JObject.Parse(base.GetNodeData()));
31 | return root.ToString(Formatting.None);
32 | }
33 |
34 | public override void SetNodeData(string jsonData) {
35 | base.SetNodeData(jsonData);
36 | var root = JObject.Parse(jsonData);
37 | VariableName = root.Value("VariableName");
38 | inputContainer.Q().SetValueWithoutNotify(VariableName);
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/GetVariableNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 0b318e8f5f18489e934474fb55138972
3 | timeCreated: 1583087027
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/IntNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEditor.UIElements;
5 | using UnityEngine.UIElements;
6 |
7 | namespace CodeGraph.Editor {
8 | [Node(true, true)]
9 | [Title("Basic", "Value Input", "Integer Input")]
10 | public class IntNode : AbstractStartNode {
11 | private int value;
12 |
13 | public IntNode() {
14 | Initialize("Integer", DefaultNodePosition);
15 | var inputField = new IntegerField {label = "x:", value = 0};
16 | inputField.labelElement.style.minWidth = 0;
17 | inputField.RegisterValueChangedCallback(evt => {
18 | CodeGraph.Instance.InvalidateSaveButton();
19 | value = evt.newValue;
20 | });
21 | inputContainer.Add(inputField);
22 |
23 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
24 | valuePort.portName = "value";
25 | AddOutputPort(valuePort, () => $"{value}");
26 | Refresh();
27 | }
28 |
29 | public override string GetNodeData() {
30 | var root = new JObject();
31 | root["value"] = value;
32 | root.Merge(JObject.Parse(base.GetNodeData()));
33 | return root.ToString(Formatting.None);
34 | }
35 |
36 | public override void SetNodeData(string jsonData) {
37 | base.SetNodeData(jsonData);
38 | var root = JObject.Parse(jsonData);
39 | value = root.Value("value");
40 | inputContainer.Q().SetValueWithoutNotify(value);
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/IntNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dd342e4744484cdc824723c7b148761d
3 | timeCreated: 1582308135
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/StringNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine.UIElements;
5 |
6 | namespace CodeGraph.Editor {
7 | [Node(true, true)]
8 | [Title("Basic", "Value Input", "String Input")]
9 | public class StringNode : AbstractStartNode {
10 | private string value;
11 |
12 | public StringNode() {
13 | Initialize("String", DefaultNodePosition);
14 | var inputField = new TextField {label = "x:", value = ""};
15 | inputField.labelElement.style.minWidth = 0;
16 | inputField.RegisterValueChangedCallback(evt => {
17 | CodeGraph.Instance.InvalidateSaveButton();
18 | value = evt.newValue;
19 | });
20 | inputContainer.Add(inputField);
21 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
22 | valuePort.portName = "value";
23 | AddOutputPort(valuePort, () => $"\"{value}\"");
24 | Refresh();
25 | }
26 |
27 | public override string GetNodeData() {
28 | var root = new JObject();
29 | root["value"] = value;
30 | root.Merge(JObject.Parse(base.GetNodeData()));
31 | return root.ToString(Formatting.None);
32 | }
33 |
34 | public override void SetNodeData(string jsonData) {
35 | base.SetNodeData(jsonData);
36 | var root = JObject.Parse(jsonData);
37 | value = root.Value("value");
38 | inputContainer.Q().SetValueWithoutNotify(value);
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/Basic/StringNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 187032d2872946e0879b831d3c7e2507
3 | timeCreated: 1582308207
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/CreateMethodNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a0da8f380c704982912fb7767fdec809
3 | timeCreated: 1590581729
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/CreateVector2Node.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEditor.UIElements;
5 | using UnityEngine.UIElements;
6 |
7 | namespace CodeGraph.Editor {
8 | [Node(true, true)]
9 | [Title("Math", "Vectors", "Create Vector2")]
10 | public class CreateVector2Node : AbstractStartNode {
11 | private float x;
12 | private float y;
13 |
14 | public CreateVector2Node() {
15 | Initialize("Create Vector2", DefaultNodePosition);
16 | var inputField = new FloatField {label = "x:", value = 0};
17 | inputField.labelElement.style.minWidth = 0;
18 | inputField.name = "xInput";
19 | inputField.RegisterValueChangedCallback(evt => {
20 | CodeGraph.Instance.InvalidateSaveButton();
21 | x = evt.newValue;
22 | });
23 | inputContainer.Add(inputField);
24 |
25 | var inputField2 = new FloatField {label = "y:", value = 0};
26 | inputField2.labelElement.style.minWidth = 0;
27 | inputField2.name = "yInput";
28 | inputField2.RegisterValueChangedCallback(evt => {
29 | CodeGraph.Instance.InvalidateSaveButton();
30 | y = evt.newValue;
31 | });
32 | inputContainer.Add(inputField2);
33 |
34 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
35 | valuePort.portName = "value (2)";
36 | AddOutputPort(valuePort, () => $"new Vector2({x}f,{y}f)");
37 | Refresh();
38 | }
39 |
40 | public override string GetNodeData() {
41 | var root = new JObject();
42 | root["x"] = x;
43 | root["y"] = y;
44 | root.Merge(JObject.Parse(base.GetNodeData()));
45 | return root.ToString(Formatting.None);
46 | }
47 |
48 | public override void SetNodeData(string jsonData) {
49 | base.SetNodeData(jsonData);
50 | var root = JObject.Parse(jsonData);
51 | x = root.Value("x");
52 | y = root.Value("y");
53 | inputContainer.Q("xInput").SetValueWithoutNotify(x);
54 | inputContainer.Q("yInput").SetValueWithoutNotify(y);
55 | }
56 | }
57 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/CreateVector2Node.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8e05785a5c6942b5b86e85534b9254c8
3 | timeCreated: 1582411023
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/CreateVector3Node.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c71f55e8fa42474588d274b1a4019ab3
3 | timeCreated: 1582414556
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/CustomCodeOutputNode.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using Newtonsoft.Json.Linq;
3 | using UnityEditor.Experimental.GraphView;
4 | using UnityEngine.UIElements;
5 |
6 | namespace CodeGraph.Editor {
7 | [Node(true, true)]
8 | [Title("Experimental", "Custom Code Output")]
9 | public class CustomCodeOutputNode : AbstractStartNode {
10 | public string CustomCode;
11 |
12 | public CustomCodeOutputNode() {
13 | Initialize("Custom Code Output", DefaultNodePosition);
14 |
15 | var propertyType = new TextField(int.MaxValue, true, false, ' ') {label = "Code"};
16 | propertyType.labelElement.style.minWidth = 0;
17 | propertyType.name = "customCode";
18 | propertyType.RegisterValueChangedCallback(evt => {
19 | CodeGraph.Instance.InvalidateSaveButton();
20 | CustomCode = evt.newValue;
21 | });
22 | inputContainer.Add(propertyType);
23 |
24 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
25 | valuePort.portName = "value";
26 | AddOutputPort(valuePort, () => CustomCode);
27 |
28 | // Experimental warning
29 | var container = new VisualElement();
30 | container.AddToClassList("experimental-warning");
31 | var text = new TextElement {text = "This node is experimental and\ncan lead to problems. Use this\nif you know what you're doing."};
32 | container.contentContainer.Add(text);
33 | extensionContainer.Add(container);
34 | Refresh();
35 | }
36 |
37 | public override string GetNodeData() {
38 | var root = new JObject();
39 | root["CustomCode"] = CustomCode;
40 | root.Merge(JObject.Parse(base.GetNodeData()));
41 | return root.ToString(Formatting.None);
42 | }
43 |
44 | public override void SetNodeData(string jsonData) {
45 | base.SetNodeData(jsonData);
46 | var root = JObject.Parse(jsonData);
47 | CustomCode = root.Value("CustomCode");
48 | inputContainer.Q("customCode").SetValueWithoutNotify(CustomCode);
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/CustomCodeOutputNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e135069dac3e40c9bcbfc3924bea1a41
3 | timeCreated: 1583082348
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/GetComponentSelfNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 377c9aa0998d4446a6e99ee7106846d0
3 | timeCreated: 1582307771
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/GetTransformSelfNode.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor.Experimental.GraphView;
2 |
3 | namespace CodeGraph.Editor {
4 | [Node(false, true)]
5 | [Title("Mono", "Transform", "Get Transform (Self)")]
6 | public class GetTransformSelfNode : AbstractStartNode {
7 | public GetTransformSelfNode() {
8 | Initialize("Get Transform", DefaultNodePosition);
9 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
10 | valuePort.portName = "transform";
11 | AddOutputPort(valuePort, () => $"transform");
12 | Refresh();
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/GetTransformSelfNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 889c37b6040a4e2fa025902d2dd7762a
3 | timeCreated: 1582306413
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/InputNode.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor.Experimental.GraphView;
2 |
3 | namespace CodeGraph.Editor {
4 | [Node(true, true)]
5 | [Title("Input", "Input")]
6 | public class InputNode : AbstractStartNode {
7 | public InputNode() {
8 | Initialize("Input", DefaultNodePosition);
9 | var anyKeyPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
10 | var anyKeyDownPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
11 | var inputStringPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
12 | var mousePositionPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
13 | var mouseScrollDeltaPort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
14 | anyKeyPort.portName = "anyKey";
15 | anyKeyDownPort.portName = "anyKeyDown";
16 | inputStringPort.portName = "inputString";
17 | mousePositionPort.portName = "mousePosition";
18 | mouseScrollDeltaPort.portName = "mouseScrollDelta";
19 | AddOutputPort(anyKeyPort, () => "Input.anyKey");
20 | AddOutputPort(anyKeyDownPort, () => "Input.anyKeyDown");
21 | AddOutputPort(inputStringPort, () => "Input.inputString");
22 | AddOutputPort(mousePositionPort, () => "Input.mousePosition");
23 | AddOutputPort(mouseScrollDeltaPort, () => "Input.mouseScrollDelta");
24 | Refresh();
25 | }
26 | }
27 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/InputNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 994a4fd39c804244b90a71bcd6071a12
3 | timeCreated: 1583083479
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/KeyCodeNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 81bbd4104e1649efb384f54442af8741
3 | timeCreated: 1583084984
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/MainCameraNode.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor.Experimental.GraphView;
2 |
3 | namespace CodeGraph.Editor {
4 | [Node(true, true)]
5 | [Title("Camera", "Main Camera")]
6 | public class MainCameraNode : AbstractStartNode {
7 | public MainCameraNode() {
8 | Initialize("Main Camera", DefaultNodePosition);
9 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
10 | valuePort.portName = "camera";
11 | AddOutputPort(valuePort, () => $"Camera.main");
12 | Refresh();
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/MainCameraNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 948af9bf4777443e89d38ecbf9c814e9
3 | timeCreated: 1582305374
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/QuaternionIdentityNode.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor.Experimental.GraphView;
2 |
3 | namespace CodeGraph.Editor {
4 | [Node(true, true)]
5 | [Title("Math", "Quaternion", "Identity Quaternion")]
6 | public class QuaternionIdentityNode : AbstractStartNode {
7 | public QuaternionIdentityNode() {
8 | Initialize("Identity Quaternion", DefaultNodePosition);
9 | var valuePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
10 | valuePort.portName = "identity";
11 | AddOutputPort(valuePort, () => $"Quaternion.identity");
12 | Refresh();
13 | }
14 | }
15 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/QuaternionIdentityNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7a27715904bd40a7aa9c2d1de76b0215
3 | timeCreated: 1583347528
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/TimeNode.cs:
--------------------------------------------------------------------------------
1 | using UnityEditor.Experimental.GraphView;
2 |
3 | namespace CodeGraph.Editor {
4 | [Node(true, true)]
5 | [Title("Basic", "Time")]
6 | public class TimeNode : AbstractStartNode {
7 | public TimeNode() {
8 | Initialize("Time", DefaultNodePosition);
9 | var timePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
10 | var unscaledTimePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
11 | var fixedTimePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
12 | var fixedUnscaledTimePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
13 | var deltaTimePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
14 | var unscaledDeltaTimePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
15 | var fixedDeltaTimePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
16 | var fixedUnscaledDeltaTimePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
17 | var timeScalePort = base.InstantiatePort(Orientation.Horizontal, Direction.Output, Port.Capacity.Multi, typeof(float));
18 | timePort.portName = "time";
19 | unscaledTimePort.portName = "unscaledTime";
20 | fixedTimePort.portName = "fixedTime";
21 | fixedUnscaledTimePort.portName = "fixedUnscaledTime";
22 | deltaTimePort.portName = "deltaTime";
23 | unscaledDeltaTimePort.portName = "unscaledDeltaTime";
24 | fixedDeltaTimePort.portName = "fixedDeltaTime";
25 | fixedUnscaledDeltaTimePort.portName = "fixedUnscaledDeltaTime";
26 | timeScalePort.portName = "timeScale";
27 | AddOutputPort(timePort, () => "Time.time");
28 | AddOutputPort(unscaledTimePort, () => "Time.unscaledTime");
29 | AddOutputPort(fixedTimePort, () => "Time.fixedTime");
30 | AddOutputPort(fixedUnscaledTimePort, () => "Time.fixedUnscaledTime");
31 | AddOutputPort(deltaTimePort, () => "Time.deltaTime");
32 | AddOutputPort(unscaledDeltaTimePort, () => "Time.unscaledDeltaTime");
33 | AddOutputPort(fixedDeltaTimePort, () => "Time.fixedDeltaTime");
34 | AddOutputPort(fixedUnscaledDeltaTimePort, () => "Time.fixedUnscaledDeltaTime");
35 | AddOutputPort(timeScalePort, () => "Time.timeScale");
36 | Refresh();
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Nodes/StartNodes/TimeNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6712e5ab97e14868b23064cfbeb78590
3 | timeCreated: 1582323247
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Ports.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 82938892ecca42bf82dc91909b5c90fa
3 | timeCreated: 1582222560
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Ports/InputPort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | public class InputPort {
6 | public event Func RequestCodeEvent;
7 | public AbstractNode ParentNode;
8 | public Port PortReference;
9 |
10 | public InputPort(AbstractNode parentNode, Port portReference, Func requestCode) {
11 | ParentNode = parentNode;
12 | PortReference = portReference;
13 | RequestCodeEvent += requestCode;
14 | }
15 |
16 | public string RequestCode() {
17 | return RequestCodeEvent != null ? RequestCodeEvent() : "/** ERROR **/";
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Ports/InputPort.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c32113c6429b4aaa9489ad84d92b16fb
3 | timeCreated: 1582222569
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Ports/OutputPort.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEditor.Experimental.GraphView;
3 |
4 | namespace CodeGraph.Editor {
5 | public class OutputPort {
6 | public event Func GetCodeEvent;
7 | public AbstractNode ParentNode;
8 | public Port PortReference;
9 |
10 | public OutputPort(AbstractNode parentNode, Port portReference, Func getCode) {
11 | ParentNode = parentNode;
12 | PortReference = portReference;
13 | GetCodeEvent += getCode;
14 | }
15 |
16 | public string GetCode() {
17 | return GetCodeEvent != null ? GetCodeEvent() : "/** ERROR **/";
18 | }
19 | }
20 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/Ports/OutputPort.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 406c214c6cd146399cbeb0340ff57f65
3 | timeCreated: 1582222584
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/SaveUtility.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c273ea7b1cf447f78f1ec760b83f1029
3 | timeCreated: 1582040359
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Editor/SearchWindowProvider.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 41d33af451f0428ba5cb4d087af72f5a
3 | timeCreated: 1582297057
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 555655f958a356d4ea3547186bd051f3
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CodeGraph.uss:
--------------------------------------------------------------------------------
1 | GridBackground {
2 | --grid-background-color: #282828;
3 | --line-color: rgba(55, 55, 55, 0.2);
4 | --thick-line-color: rgba(20, 20, 20, 0.6);
5 | --spacing: 10;
6 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CodeGraph.uss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: ac9f653bfd834d0c869a7f363ab28ceb
3 | timeCreated: 1582034017
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CodeGraphWindow.uss:
--------------------------------------------------------------------------------
1 | .saveButton-unsaved {
2 | color: #A60918;
3 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CodeGraphWindow.uss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8f36a91c440047a68fb58e8ab238a67b
3 | timeCreated: 1594918226
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CodeNode.uss:
--------------------------------------------------------------------------------
1 | .node.eventNode #title {
2 | background-color: rgba(40, 80, 120, 0.8);
3 | }
4 | :selected > #selection-border {
5 | border-left-color: darkorange !important;
6 | border-top-color: deeppink !important;
7 | border-right-color: deepskyblue !important;
8 | border-bottom-color: lawngreen !important;
9 | }
10 |
11 | :hover > #selection-border {
12 | border-left-color: darkorange !important;
13 | border-top-color: deeppink !important;
14 | border-right-color: deepskyblue !important;
15 | border-bottom-color: lawngreen !important;
16 | }
17 |
18 | :hover:selected > #selection-border {
19 | border-left-color: darkorange !important;
20 | border-top-color: deeppink !important;
21 | border-right-color: deepskyblue !important;
22 | border-bottom-color: lawngreen !important;
23 | }
24 |
25 | .experimental-warning {
26 | background-color: gold;
27 | -unity-font-style: bold;
28 | }
29 |
30 | .experimental-warning > TextElement {
31 | color: red;
32 | font-size: 12;
33 | padding: 6px;
34 | overflow: scroll;
35 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CodeNode.uss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6dbfdd690d7b49a7908b899447c0c98a
3 | timeCreated: 1582034114
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CreateMethodNode.uss:
--------------------------------------------------------------------------------
1 | #method-name-input {
2 | background-color: rgba(63, 63, 63, 0.8);
3 | /*background-color: rgba(0.247, 0.247, 0.247, 0.804*255); */
4 | }
5 |
6 | .horizontal-divider {
7 | background-color: rgba(35, 35, 35, 0.8);
8 | border-color: rgba(35, 35, 35, 0.8);
9 | height: 0.01px;
10 | border-bottom-width: 1px;
11 | }
12 |
13 | .horizontal-divider.dark {
14 | background-color: rgba(70, 70, 70, 0.8);
15 | border-color: rgba(70, 70, 70, 0.8);
16 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/CreateMethodNode.uss.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5ec808fc97d44f27a9ba8d88776f89cf
3 | timeCreated: 1590672911
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/codegraph_256.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/codegraph_256.png
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/codegraph_256.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c671b233c9f2439c97e8bb7cd7983efa
3 | TextureImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 10
7 | mipmaps:
8 | mipMapMode: 0
9 | enableMipMap: 0
10 | sRGBTexture: 1
11 | linearTexture: 0
12 | fadeOut: 0
13 | borderMipMap: 0
14 | mipMapsPreserveCoverage: 0
15 | alphaTestReferenceValue: 0.5
16 | mipMapFadeDistanceStart: 1
17 | mipMapFadeDistanceEnd: 3
18 | bumpmap:
19 | convertToNormalMap: 0
20 | externalNormalMap: 0
21 | heightScale: 0.25
22 | normalMapFilter: 0
23 | isReadable: 0
24 | streamingMipmaps: 0
25 | streamingMipmapsPriority: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -100
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spritePixelsToUnits: 100
49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 | spriteGenerateFallbackPhysicsShape: 1
51 | alphaUsage: 1
52 | alphaIsTransparency: 1
53 | spriteTessellationDetail: -1
54 | textureType: 8
55 | textureShape: 1
56 | singleChannelComponent: 0
57 | maxTextureSizeSet: 0
58 | compressionQualitySet: 0
59 | textureFormatSet: 0
60 | platformSettings:
61 | - serializedVersion: 3
62 | buildTarget: DefaultTexturePlatform
63 | maxTextureSize: 2048
64 | resizeAlgorithm: 0
65 | textureFormat: -1
66 | textureCompression: 1
67 | compressionQuality: 50
68 | crunchedCompression: 0
69 | allowsAlphaSplitting: 0
70 | overridden: 0
71 | androidETC2FallbackOverride: 0
72 | forceMaximumCompressionQuality_BC6H_BC7: 0
73 | spriteSheet:
74 | serializedVersion: 2
75 | sprites: []
76 | outline: []
77 | physicsShape: []
78 | bones: []
79 | spriteID: 5e97eb03825dee720800000000000000
80 | internalID: 0
81 | vertices: []
82 | indices:
83 | edges: []
84 | weights: []
85 | secondaryTextures: []
86 | spritePackingTag:
87 | pSDRemoveMatte: 0
88 | pSDShowRemoveMatteOption: 0
89 | userData:
90 | assetBundleName:
91 | assetBundleVariant:
92 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/sg_graph_icon_gray_dark@16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/sg_graph_icon_gray_dark@16.png
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Resources/sg_graph_icon_gray_dark@16.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2f434db4064d1c34eb0cea833d8eb51b
3 | TextureImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 10
7 | mipmaps:
8 | mipMapMode: 0
9 | enableMipMap: 0
10 | sRGBTexture: 1
11 | linearTexture: 0
12 | fadeOut: 0
13 | borderMipMap: 0
14 | mipMapsPreserveCoverage: 0
15 | alphaTestReferenceValue: 0.5
16 | mipMapFadeDistanceStart: 1
17 | mipMapFadeDistanceEnd: 3
18 | bumpmap:
19 | convertToNormalMap: 0
20 | externalNormalMap: 0
21 | heightScale: 0.25
22 | normalMapFilter: 0
23 | isReadable: 0
24 | streamingMipmaps: 0
25 | streamingMipmapsPriority: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: -1
35 | aniso: -1
36 | mipBias: -100
37 | wrapU: 1
38 | wrapV: 1
39 | wrapW: 1
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 1
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spritePixelsToUnits: 100
49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 | spriteGenerateFallbackPhysicsShape: 1
51 | alphaUsage: 1
52 | alphaIsTransparency: 1
53 | spriteTessellationDetail: -1
54 | textureType: 8
55 | textureShape: 1
56 | singleChannelComponent: 0
57 | maxTextureSizeSet: 0
58 | compressionQualitySet: 0
59 | textureFormatSet: 0
60 | platformSettings:
61 | - serializedVersion: 3
62 | buildTarget: DefaultTexturePlatform
63 | maxTextureSize: 2048
64 | resizeAlgorithm: 0
65 | textureFormat: -1
66 | textureCompression: 1
67 | compressionQuality: 50
68 | crunchedCompression: 0
69 | allowsAlphaSplitting: 0
70 | overridden: 0
71 | androidETC2FallbackOverride: 0
72 | forceMaximumCompressionQuality_BC6H_BC7: 0
73 | spriteSheet:
74 | serializedVersion: 2
75 | sprites: []
76 | outline: []
77 | physicsShape: []
78 | bones: []
79 | spriteID: 5e97eb03825dee720800000000000000
80 | internalID: 0
81 | vertices: []
82 | indices:
83 | edges: []
84 | weights: []
85 | secondaryTextures: []
86 | spritePackingTag:
87 | pSDRemoveMatte: 0
88 | pSDShowRemoveMatteOption: 0
89 | userData:
90 | assetBundleName:
91 | assetBundleVariant:
92 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 401b435fc11f45e094e2d294a634e2ad
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/CodeGraphData.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using CodeGraph.Editor;
4 | using UnityEngine;
5 |
6 | namespace CodeGraph {
7 | [Serializable] public class CodeGraphData {
8 | public static uint SchemaVersionLatest = 1;
9 |
10 | [SerializeField] public string AssetPath;
11 | [SerializeField] public string GraphName;
12 | [SerializeField] public string LastEditedAt = "0";
13 | [SerializeField] public uint SchemaVersion = SchemaVersionLatest;
14 | [SerializeField] public bool IsMonoBehaviour;
15 | [SerializeField] public List Nodes = new List();
16 | [SerializeField] public List Edges = new List();
17 | [SerializeField] public List Groups = new List();
18 | [NonSerialized] public Dictionary> GroupItems = new Dictionary>();
19 |
20 | public void AddGroup(GroupData groupData) {
21 | if (!Groups.Contains(groupData))
22 | Groups.Add(groupData);
23 | if (!GroupItems.ContainsKey(groupData.Guid))
24 | GroupItems.Add(groupData.Guid, new List());
25 | }
26 |
27 | public void SetGroup(IGroupItem node, GroupData group) {
28 | var groupGuid = group?.Guid ?? Guid.Empty;
29 | if (node.GroupGuid != Guid.Empty) {
30 | var oldGroupNodes = GroupItems[groupGuid];
31 | oldGroupNodes.Remove(node);
32 | }
33 |
34 | node.GroupGuid = groupGuid;
35 | GroupItems[groupGuid].Add(node);
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/CodeGraphData.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e17e09674faa4c619cd18ce3e662df87
3 | timeCreated: 1582043172
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/CodeGraphObject.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace CodeGraph {
4 | public class CodeGraphObject : ScriptableObject {
5 | [SerializeField] private CodeGraphData codeGraphData;
6 | public CodeGraphData CodeGraphData => codeGraphData;
7 |
8 | /*private void OnEnable() {
9 | hideFlags = HideFlags.HideAndDontSave;
10 | }*/
11 |
12 | public void Initialize(CodeGraphData codeGraphData) {
13 | this.codeGraphData = codeGraphData;
14 | }
15 | }
16 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/CodeGraphObject.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 70207938ef324a258175f5a8b286b8f3
3 | timeCreated: 1582040278
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/CopyPasteGraphData.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b6d342bf79264f718a6036ad0b357704
3 | timeCreated: 1583395936
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/SerializationHelper.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: eecd19ab38af47a4b392f1492d2ceb9a
3 | timeCreated: 1583396529
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/SerializedEdge.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace CodeGraph {
4 | [Serializable]
5 | public class SerializedEdge {
6 | public string SourceNodeGUID;
7 | public int SourceNodeIndex;
8 | public string TargetNodeGUID;
9 | public int TargetNodeIndex;
10 | }
11 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/SerializedEdge.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3d680170c6b49cd41bd28442363447b4
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/SerializedNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using UnityEngine;
3 |
4 | namespace CodeGraph {
5 | [Serializable]
6 | public class SerializedNode {
7 | public string GUID;
8 | public string GroupGUID;
9 | public string NodeType;
10 | public Vector2 Position;
11 | public string NodeData;
12 | }
13 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/CodeGraph/Runtime/SerializedNode.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 22f0805bb4314361b33c4966dc503e69
3 | timeCreated: 1582040016
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/Examples.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: db25a513c89b2b7489a496ff1a86a7ee
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/Examples/Basics.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dcd407f660c473848b12a70ef7bc0f13
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/Examples/Basics/Properties.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bf2743bd3c6238446aaf6ca97e76df46
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/Examples/Basics/Properties/Explanation.txt:
--------------------------------------------------------------------------------
1 | This example showcases how to use the Create Property
2 | and Get Property nodes.
3 | With the Create Property node you specify the type and name
4 | of the property. This automatically adds a public variable to
5 | the generated code. Properties are fields you can access through
6 | the inspector inside the Unity Editor.
7 | With the Get Property node you can access the property and use it
8 | in various ways. In this example it is used to print the text
9 | "Your speed is: " where is the value of the property
10 | created previously.
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/Examples/Basics/Properties/Explanation.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 38abd25713aa28f438d675327b763719
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/Examples/Basics/Properties/Generated Code.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | public class Properties : MonoBehaviour {
3 | public float Speed;//BEGIN_NODE_GUID/2fec54f5-6ce3-429d-96b5-796a43eea6b7/END_NODE_GUID
4 | private void Start() {
5 | Debug.Log("Your speed is: "+Speed);//BEGIN_NODE_GUID/c538b256-3414-445d-974a-fa220223dd6b/END_NODE_GUID
6 | }
7 |
8 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/CodeGraph/Examples/Basics/Properties/Generated Code.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f8d4279ca14ed1e4b9312c465365f6b6
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Newtonsoft.Json.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3898b963a51390f468534542b429f49c
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Newtonsoft.Json/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Assets/Newtonsoft.Json/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Newtonsoft.Json/Newtonsoft.Json.dll.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f62a8351431966d4aa7c0a4312498df4
3 | PluginImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | iconMap: {}
7 | executionOrder: {}
8 | defineConstraints: []
9 | isPreloaded: 0
10 | isOverridable: 0
11 | isExplicitlyReferenced: 0
12 | validateReferences: 1
13 | platformData:
14 | - first:
15 | Any:
16 | second:
17 | enabled: 1
18 | settings: {}
19 | - first:
20 | Editor: Editor
21 | second:
22 | enabled: 0
23 | settings:
24 | DefaultValueInitialized: true
25 | - first:
26 | Windows Store Apps: WindowsStoreApps
27 | second:
28 | enabled: 0
29 | settings:
30 | CPU: AnyCPU
31 | userData:
32 | assetBundleName:
33 | assetBundleVariant:
34 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Newtonsoft.Json/Newtonsoft.Json.xml.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: cb3ff30924d93ce4ea15fb78d3a86966
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/PlayerControllerOld.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | public class PlayerControllerOld : MonoBehaviour {
4 | public float Speed = 5f;
5 | private void Update() {
6 | transform.position += new Vector3(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"), 0f) * (Speed * Time.deltaTime);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/PlayerControllerOld.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 277b733ca8451a04f927f50f03324de8
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Scenes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fc12544a2d0a45f4287ad10bef220b4a
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Scenes/SampleScene.unity.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2cda990e2423bbf4892e6590ba056729
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Sprites.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 146e703b7e231d146b770109cc652c0e
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Sprites/Square.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Assets/Sprites/Square.png
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/Sprites/Square.png.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 613cc6987bf40ae4aa967686e9b633b2
3 | TextureImporter:
4 | internalIDToNameTable: []
5 | externalObjects: {}
6 | serializedVersion: 10
7 | mipmaps:
8 | mipMapMode: 0
9 | enableMipMap: 1
10 | sRGBTexture: 1
11 | linearTexture: 0
12 | fadeOut: 0
13 | borderMipMap: 0
14 | mipMapsPreserveCoverage: 0
15 | alphaTestReferenceValue: 0.5
16 | mipMapFadeDistanceStart: 1
17 | mipMapFadeDistanceEnd: 3
18 | bumpmap:
19 | convertToNormalMap: 0
20 | externalNormalMap: 0
21 | heightScale: 0.25
22 | normalMapFilter: 0
23 | isReadable: 0
24 | streamingMipmaps: 0
25 | streamingMipmapsPriority: 0
26 | grayScaleToAlpha: 0
27 | generateCubemap: 6
28 | cubemapConvolution: 0
29 | seamlessCubemap: 0
30 | textureFormat: 1
31 | maxTextureSize: 2048
32 | textureSettings:
33 | serializedVersion: 2
34 | filterMode: 0
35 | aniso: 1
36 | mipBias: 0
37 | wrapU: 0
38 | wrapV: 0
39 | wrapW: 0
40 | nPOTScale: 0
41 | lightmap: 0
42 | compressionQuality: 50
43 | spriteMode: 3
44 | spriteExtrude: 1
45 | spriteMeshType: 1
46 | alignment: 0
47 | spritePivot: {x: 0.5, y: 0.5}
48 | spritePixelsToUnits: 4
49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0}
50 | spriteGenerateFallbackPhysicsShape: 1
51 | alphaUsage: 1
52 | alphaIsTransparency: 0
53 | spriteTessellationDetail: -1
54 | textureType: 8
55 | textureShape: 1
56 | singleChannelComponent: 0
57 | maxTextureSizeSet: 0
58 | compressionQualitySet: 0
59 | textureFormatSet: 0
60 | platformSettings:
61 | - serializedVersion: 3
62 | buildTarget: DefaultTexturePlatform
63 | maxTextureSize: 2048
64 | resizeAlgorithm: 0
65 | textureFormat: 4
66 | textureCompression: 1
67 | compressionQuality: 50
68 | crunchedCompression: 0
69 | allowsAlphaSplitting: 0
70 | overridden: 0
71 | androidETC2FallbackOverride: 0
72 | forceMaximumCompressionQuality_BC6H_BC7: 0
73 | spriteSheet:
74 | serializedVersion: 2
75 | sprites: []
76 | outline:
77 | - - {x: -2, y: -2}
78 | - {x: -2, y: 2}
79 | - {x: 2, y: 2}
80 | - {x: 2, y: -2}
81 | physicsShape:
82 | - - {x: -2, y: -2}
83 | - {x: -2, y: 2}
84 | - {x: 2, y: 2}
85 | - {x: 2, y: -2}
86 | bones: []
87 | spriteID: 5e97eb03825dee720800000000000000
88 | internalID: 0
89 | vertices: []
90 | indices:
91 | edges: []
92 | weights: []
93 | secondaryTextures: []
94 | spritePackingTag:
95 | pSDRemoveMatte: 0
96 | pSDShowRemoveMatteOption: 0
97 | userData:
98 | assetBundleName:
99 | assetBundleVariant:
100 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TargetFollow.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 | public class TargetFollow : MonoBehaviour {
3 | public Transform Target;//BEGIN_NODE_GUID/aeadd7ff-d9c4-431f-9696-78470f4ac544/END_NODE_GUID
4 | public Vector3 Offset;//BEGIN_NODE_GUID/e0c18633-70c0-4f3a-8c4c-ebf35b28f76b/END_NODE_GUID
5 | private void LateUpdate() {
6 | if(!Target.Equals(((object)null) /* WARNING: You probably want connect this node to something. Node GUID: db9377f2-89ab-4e8c-8544-71ad126a8a30 */)) {//BEGIN_NODE_GUID/50995a65-60d9-4bdd-a236-933448eabd56/END_NODE_GUID
7 | transform.position=Target.position+Offset;//BEGIN_NODE_GUID/3033761e-a248-4838-9e3c-2e5bae159c5e/END_NODE_GUID
8 | }
9 | }
10 |
11 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TargetFollow.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bb723649700274a4f859a789ba39d6ca
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f54d1bd14bd3ca042bd867b519fee8cc
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Documentation.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8e7e8f5a82a3a134e91c54efd2274ea9
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1b8d251f9af63b746bf2f7ffe00ebb9b
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Fonts.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6ab70aee4d56447429c680537fbf93ed
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 6e59c59b81ab47f9b6ec5781fa725d2c
3 | timeCreated: 1484171296
4 | licenseType: Pro
5 | TextScriptImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e3265ab4bf004d28a9537516768c1c75
3 | timeCreated: 1484171297
4 | licenseType: Pro
5 | TrueTypeFontImporter:
6 | serializedVersion: 2
7 | fontSize: 16
8 | forceTextureCase: -2
9 | characterSpacing: 1
10 | characterPadding: 0
11 | includeFontData: 1
12 | use2xBehaviour: 0
13 | fontNames: []
14 | fallbackFontReferences: []
15 | customCharacters:
16 | fontRenderingMode: 0
17 | userData:
18 | assetBundleName:
19 | assetBundleVariant:
20 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 243e06394e614e5d99fab26083b707fa
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Fonts & Materials.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 731f1baa9d144a9897cb1d341c2092b8
3 | folderAsset: yes
4 | timeCreated: 1442040525
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: e73a58f6e2794ae7b1b7e50b7fb811b0
3 | timeCreated: 1484172806
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 2e498d1c8094910479dc3e1b768306a4
3 | timeCreated: 1484171803
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 79459efec17a4d00a321bdcc27bbc385
3 | timeCreated: 1484172856
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8f586378b4e144a9851e7b34d9b748ee
3 | timeCreated: 1484171803
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt:
--------------------------------------------------------------------------------
1 | )]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,.
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fade42e8bc714b018fac513c043d323b
3 | timeCreated: 1425440388
4 | licenseType: Store
5 | TextScriptImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt:
--------------------------------------------------------------------------------
1 | ([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇〉》」$⦆¥₩ #
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d82c1b31c7e74239bff1220585707d2b
3 | timeCreated: 1425440388
4 | licenseType: Store
5 | TextScriptImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 99f836c9cb9345dba2e72c4a1f2d0695
3 | folderAsset: yes
4 | timeCreated: 1436068007
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 48bb5f55d8670e349b6e614913f9d910
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Mobile.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1e3b057af24249748ff873be7fafee47
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 128e987d567d4e2c824d754223b3f3b0
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_SDF Overlay.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: dd89cf5b9246416f84610a006f916af7
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Masking.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bc1ede39bf3643ee8e493720e4259791
3 | timeCreated: 1463704911
4 | licenseType: Pro
5 | ShaderImporter:
6 | defaultTextures: []
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Overlay.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a02a7d8c237544f1962732b55a9aebf1
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: fe393ace9b354375a9cb14cdbbc28be4
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 85187c2149c549c5b33f0cdb02836b17
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f7ada0af4f174f0694ca6a487b8f543d
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_SDF.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 68e6db2ebdc24f95958faec2be5558d6
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: cf81c85f95fe47e1a27f6ae460cf182c
3 | timeCreated: 1450517184
4 | licenseType: Pro
5 | ShaderImporter:
6 | defaultTextures: []
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc:
--------------------------------------------------------------------------------
1 | float2 UnpackUV(float uv)
2 | {
3 | float2 output;
4 | output.x = floor(uv / 4096);
5 | output.y = uv - 4096 * output.x;
6 |
7 | return output * 0.001953125;
8 | }
9 |
10 | fixed4 GetColor(half d, fixed4 faceColor, fixed4 outlineColor, half outline, half softness)
11 | {
12 | half faceAlpha = 1-saturate((d - outline * 0.5 + softness * 0.5) / (1.0 + softness));
13 | half outlineAlpha = saturate((d + outline * 0.5)) * sqrt(min(1.0, outline));
14 |
15 | faceColor.rgb *= faceColor.a;
16 | outlineColor.rgb *= outlineColor.a;
17 |
18 | faceColor = lerp(faceColor, outlineColor, outlineAlpha);
19 |
20 | faceColor *= faceAlpha;
21 |
22 | return faceColor;
23 | }
24 |
25 | float3 GetSurfaceNormal(float4 h, float bias)
26 | {
27 | bool raisedBevel = step(1, fmod(_ShaderFlags, 2));
28 |
29 | h += bias+_BevelOffset;
30 |
31 | float bevelWidth = max(.01, _OutlineWidth+_BevelWidth);
32 |
33 | // Track outline
34 | h -= .5;
35 | h /= bevelWidth;
36 | h = saturate(h+.5);
37 |
38 | if(raisedBevel) h = 1 - abs(h*2.0 - 1.0);
39 | h = lerp(h, sin(h*3.141592/2.0), _BevelRoundness);
40 | h = min(h, 1.0-_BevelClamp);
41 | h *= _Bevel * bevelWidth * _GradientScale * -2.0;
42 |
43 | float3 va = normalize(float3(1.0, 0.0, h.y - h.x));
44 | float3 vb = normalize(float3(0.0, -1.0, h.w - h.z));
45 |
46 | return cross(va, vb);
47 | }
48 |
49 | float3 GetSurfaceNormal(float2 uv, float bias, float3 delta)
50 | {
51 | // Read "height field"
52 | float4 h = {tex2D(_MainTex, uv - delta.xz).a,
53 | tex2D(_MainTex, uv + delta.xz).a,
54 | tex2D(_MainTex, uv - delta.zy).a,
55 | tex2D(_MainTex, uv + delta.zy).a};
56 |
57 | return GetSurfaceNormal(h, bias);
58 | }
59 |
60 | float3 GetSpecular(float3 n, float3 l)
61 | {
62 | float spec = pow(max(0.0, dot(n, l)), _Reflectivity);
63 | return _SpecularColor.rgb * spec * _SpecularPower;
64 | }
65 |
66 | float4 GetGlowColor(float d, float scale)
67 | {
68 | float glow = d - (_GlowOffset*_ScaleRatioB) * 0.5 * scale;
69 | float t = lerp(_GlowInner, (_GlowOuter * _ScaleRatioB), step(0.0, glow)) * 0.5 * scale;
70 | glow = saturate(abs(glow/(1.0 + t)));
71 | glow = 1.0-pow(glow, _GlowPower);
72 | glow *= sqrt(min(1.0, t)); // Fade off glow thinner than 1 screen pixel
73 | return float4(_GlowColor.rgb, saturate(_GlowColor.a * glow * 2));
74 | }
75 |
76 | float4 BlendARGB(float4 overlying, float4 underlying)
77 | {
78 | overlying.rgb *= overlying.a;
79 | underlying.rgb *= underlying.a;
80 | float3 blended = overlying.rgb + ((1-overlying.a)*underlying.rgb);
81 | float alpha = underlying.a + (1-underlying.a)*overlying.a;
82 | return float4(blended, alpha);
83 | }
84 |
85 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 407bc68d299748449bbf7f48ee690f8d
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3997e2241185407d80309a82f9148466
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d930090c0cd643c7b55f19a38538c162
3 | ShaderImporter:
4 | defaultTextures: []
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Sprite Assets.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 512a49d95c0c4332bdd98131869c23c9
3 | folderAsset: yes
4 | timeCreated: 1441876896
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: c41005c129ba4d66911b75229fd70b45
3 | timeCreated: 1480316912
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Style Sheets.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 4aecb92fff08436c8303b10eab8da368
3 | folderAsset: yes
4 | timeCreated: 1441876950
5 | licenseType: Pro
6 | DefaultImporter:
7 | userData:
8 | assetBundleName:
9 | assetBundleVariant:
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f952c082cb03451daed3ee968ac6c63e
3 | timeCreated: 1432805430
4 | licenseType: Store
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/TMP Settings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3}
13 | m_Name: TMP Settings
14 | m_EditorClassIdentifier:
15 | m_enableWordWrapping: 1
16 | m_enableKerning: 1
17 | m_enableExtraPadding: 0
18 | m_enableTintAllSprites: 0
19 | m_enableParseEscapeCharacters: 1
20 | m_EnableRaycastTarget: 1
21 | m_GetFontFeaturesAtRuntime: 1
22 | m_missingGlyphCharacter: 0
23 | m_warningsDisabled: 1
24 | m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
25 | m_defaultFontAssetPath: Fonts & Materials/
26 | m_defaultFontSize: 36
27 | m_defaultAutoSizeMinRatio: 0.5
28 | m_defaultAutoSizeMaxRatio: 2
29 | m_defaultTextMeshProTextContainerSize: {x: 20, y: 5}
30 | m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50}
31 | m_autoSizeTextContainer: 0
32 | m_fallbackFontAssets: []
33 | m_matchMaterialPreset: 1
34 | m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45,
35 | type: 2}
36 | m_defaultSpriteAssetPath: Sprite Assets/
37 | m_defaultColorGradientPresetsPath: Color Gradient Presets/
38 | m_enableEmojiSupport: 1
39 | m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e,
40 | type: 2}
41 | m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3}
42 | m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b,
43 | type: 3}
44 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Resources/TMP Settings.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3f5b5dff67a942289a9defa416b206f3
3 | timeCreated: 1436653997
4 | licenseType: Pro
5 | NativeFormatImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Sprites.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d0603b6d5186471b96c778c3949c7ce2
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt:
--------------------------------------------------------------------------------
1 | This sample of beautiful emojis are provided by EmojiOne https://www.emojione.com/
2 |
3 | Please visit their website to view the complete set of their emojis and review their licensing terms.
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 381dcb09d5029d14897e55f98031fca5
3 | TextScriptImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Sprites/EmojiOne.json.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 8f05276190cf498a8153f6cbe761d4e6
3 | timeCreated: 1480316860
4 | licenseType: Pro
5 | TextScriptImporter:
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/TextMesh Pro/Sprites/EmojiOne.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Assets/TextMesh Pro/Sprites/EmojiOne.png
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/UniversalRenderPipelineAsset.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
13 | m_Name: UniversalRenderPipelineAsset
14 | m_EditorClassIdentifier:
15 | k_AssetVersion: 5
16 | k_AssetPreviousVersion: 5
17 | m_RendererType: 1
18 | m_RendererData: {fileID: 0}
19 | m_RendererDataList:
20 | - {fileID: 11400000, guid: 49613bd7a93a0a84b950c548f72c399a, type: 2}
21 | m_DefaultRendererIndex: 0
22 | m_RequireDepthTexture: 0
23 | m_RequireOpaqueTexture: 0
24 | m_OpaqueDownsampling: 1
25 | m_SupportsTerrainHoles: 1
26 | m_SupportsHDR: 0
27 | m_MSAA: 1
28 | m_RenderScale: 1
29 | m_MainLightRenderingMode: 1
30 | m_MainLightShadowsSupported: 1
31 | m_MainLightShadowmapResolution: 2048
32 | m_AdditionalLightsRenderingMode: 1
33 | m_AdditionalLightsPerObjectLimit: 4
34 | m_AdditionalLightShadowsSupported: 0
35 | m_AdditionalLightsShadowmapResolution: 512
36 | m_ShadowDistance: 50
37 | m_ShadowCascades: 0
38 | m_Cascade2Split: 0.25
39 | m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
40 | m_ShadowDepthBias: 1
41 | m_ShadowNormalBias: 1
42 | m_SoftShadowsSupported: 0
43 | m_UseSRPBatcher: 1
44 | m_SupportsDynamicBatching: 0
45 | m_MixedLightingSupported: 1
46 | m_DebugLevel: 0
47 | m_ColorGradingMode: 0
48 | m_ColorGradingLutSize: 32
49 | m_ShadowType: 1
50 | m_LocalShadowsSupported: 0
51 | m_LocalShadowsAtlasResolution: 256
52 | m_MaxPixelLights: 0
53 | m_ShadowAtlasResolution: 256
54 | m_ShaderVariantLogLevel: 0
55 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/UniversalRenderPipelineAsset.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 9e9274cba93c5954285b2e4c863ba0ca
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/UniversalRenderPipelineAsset_Renderer.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &11400000
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
13 | m_Name: UniversalRenderPipelineAsset_Renderer
14 | m_EditorClassIdentifier:
15 | m_RendererFeatures: []
16 | postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
17 | shaders:
18 | blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
19 | copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
20 | screenSpaceShadowPS: {fileID: 4800000, guid: 0f854b35a0cf61a429bd5dcfea30eddd,
21 | type: 3}
22 | samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
23 | fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
24 | m_OpaqueLayerMask:
25 | serializedVersion: 2
26 | m_Bits: 4294967295
27 | m_TransparentLayerMask:
28 | serializedVersion: 2
29 | m_Bits: 4294967295
30 | m_DefaultStencilState:
31 | overrideStencilState: 0
32 | stencilReference: 0
33 | stencilCompareFunction: 8
34 | passOperation: 0
35 | failOperation: 0
36 | zFailOperation: 0
37 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Assets/UniversalRenderPipelineAsset_Renderer.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 49613bd7a93a0a84b950c548f72c399a
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/CodeGraph.csproj.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | True
3 | True
4 | True
5 | True
6 | True
7 | True
8 | True
9 | True
10 | True
11 | True
12 | True
--------------------------------------------------------------------------------
/CodeGraph_Unity/CodeGraph.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeGraph", "CodeGraph.csproj", "{0b6800f8-45e5-a384-b3d3-d19ce4531125}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{8d9fde75-e90f-176f-5813-7dd5a8e548f2}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor-firstpass", "Assembly-CSharp-Editor-firstpass.csproj", "{7bd80cf6-0e49-a677-60b3-616066cf66dc}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Release|Any CPU = Release|Any CPU
14 | EndGlobalSection
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 | {0b6800f8-45e5-a384-b3d3-d19ce4531125}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17 | {0b6800f8-45e5-a384-b3d3-d19ce4531125}.Debug|Any CPU.Build.0 = Debug|Any CPU
18 | {0b6800f8-45e5-a384-b3d3-d19ce4531125}.Release|Any CPU.ActiveCfg = Release|Any CPU
19 | {0b6800f8-45e5-a384-b3d3-d19ce4531125}.Release|Any CPU.Build.0 = Release|Any CPU
20 | {8d9fde75-e90f-176f-5813-7dd5a8e548f2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {8d9fde75-e90f-176f-5813-7dd5a8e548f2}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {8d9fde75-e90f-176f-5813-7dd5a8e548f2}.Release|Any CPU.ActiveCfg = Release|Any CPU
23 | {8d9fde75-e90f-176f-5813-7dd5a8e548f2}.Release|Any CPU.Build.0 = Release|Any CPU
24 | {7bd80cf6-0e49-a677-60b3-616066cf66dc}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25 | {7bd80cf6-0e49-a677-60b3-616066cf66dc}.Debug|Any CPU.Build.0 = Debug|Any CPU
26 | {7bd80cf6-0e49-a677-60b3-616066cf66dc}.Release|Any CPU.ActiveCfg = Release|Any CPU
27 | {7bd80cf6-0e49-a677-60b3-616066cf66dc}.Release|Any CPU.Build.0 = Release|Any CPU
28 | EndGlobalSection
29 | GlobalSection(SolutionProperties) = preSolution
30 | HideSolutionNode = FALSE
31 | EndGlobalSection
32 | EndGlobal
33 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/CodeGraph.sln.DotSettings.user:
--------------------------------------------------------------------------------
1 |
2 | ForceIncluded
3 | <AssemblyExplorer>
4 | <Assembly Path="C:\Users\TeodorVecerdi\Desktop\Development\Unity\CodeGraph\Assets\Newtonsoft.Json\Newtonsoft.Json.dll" />
5 | <Assembly Path="C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll" />
6 | <Assembly Path="C:\Program Files\Unity\Hub\Editor\2019.3.2f1\Editor\Data\Managed\UnityEngine\UnityEngine.SharedInternalsModule.dll" />
7 | </AssemblyExplorer>
--------------------------------------------------------------------------------
/CodeGraph_Unity/CodeGraph_Unity.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeGraph", "CodeGraph.csproj", "{5ed6c2f1-6a2d-30fd-cc13-51e3e05dfc63}"
5 | EndProject
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{7516213d-210e-9ff4-49b6-043dc0367fdf}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {5ed6c2f1-6a2d-30fd-cc13-51e3e05dfc63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {5ed6c2f1-6a2d-30fd-cc13-51e3e05dfc63}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {5ed6c2f1-6a2d-30fd-cc13-51e3e05dfc63}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {5ed6c2f1-6a2d-30fd-cc13-51e3e05dfc63}.Release|Any CPU.Build.0 = Release|Any CPU
18 | {7516213d-210e-9ff4-49b6-043dc0367fdf}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {7516213d-210e-9ff4-49b6-043dc0367fdf}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {7516213d-210e-9ff4-49b6-043dc0367fdf}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {7516213d-210e-9ff4-49b6-043dc0367fdf}.Release|Any CPU.Build.0 = Release|Any CPU
22 | EndGlobalSection
23 | GlobalSection(SolutionProperties) = preSolution
24 | HideSolutionNode = FALSE
25 | EndGlobalSection
26 | EndGlobal
27 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/.signature.p7s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/.signature.p7s
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2007 James Newton-King
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/Newtonsoft.Json.11.0.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/Newtonsoft.Json.11.0.2.nupkg
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net20/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net20/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net35/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net35/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net40/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net40/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/net45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/netstandard1.0/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/netstandard1.0/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/netstandard1.3/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/netstandard1.3/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/netstandard2.0/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/netstandard2.0/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/CodeGraph_Unity/Packages/Newtonsoft.Json.11.0.2/lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/CodeGraph_Unity/Packages/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "com.unity.2d.sprite": "1.0.0",
4 | "com.unity.2d.tilemap": "1.0.0",
5 | "com.unity.collab-proxy": "1.2.16",
6 | "com.unity.ide.rider": "2.0.3",
7 | "com.unity.ide.vscode": "1.2.0",
8 | "com.unity.render-pipelines.universal": "7.3.1",
9 | "com.unity.shadergraph": "7.3.1",
10 | "com.unity.test-framework": "1.1.13",
11 | "com.unity.textmeshpro": "2.0.1",
12 | "com.unity.timeline": "1.2.10",
13 | "com.unity.ugui": "1.0.0",
14 | "com.unity.modules.ai": "1.0.0",
15 | "com.unity.modules.androidjni": "1.0.0",
16 | "com.unity.modules.animation": "1.0.0",
17 | "com.unity.modules.assetbundle": "1.0.0",
18 | "com.unity.modules.audio": "1.0.0",
19 | "com.unity.modules.cloth": "1.0.0",
20 | "com.unity.modules.director": "1.0.0",
21 | "com.unity.modules.imageconversion": "1.0.0",
22 | "com.unity.modules.imgui": "1.0.0",
23 | "com.unity.modules.jsonserialize": "1.0.0",
24 | "com.unity.modules.particlesystem": "1.0.0",
25 | "com.unity.modules.physics": "1.0.0",
26 | "com.unity.modules.physics2d": "1.0.0",
27 | "com.unity.modules.screencapture": "1.0.0",
28 | "com.unity.modules.terrain": "1.0.0",
29 | "com.unity.modules.terrainphysics": "1.0.0",
30 | "com.unity.modules.tilemap": "1.0.0",
31 | "com.unity.modules.ui": "1.0.0",
32 | "com.unity.modules.uielements": "1.0.0",
33 | "com.unity.modules.umbra": "1.0.0",
34 | "com.unity.modules.unityanalytics": "1.0.0",
35 | "com.unity.modules.unitywebrequest": "1.0.0",
36 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
37 | "com.unity.modules.unitywebrequestaudio": "1.0.0",
38 | "com.unity.modules.unitywebrequesttexture": "1.0.0",
39 | "com.unity.modules.unitywebrequestwww": "1.0.0",
40 | "com.unity.modules.vehicles": "1.0.0",
41 | "com.unity.modules.video": "1.0.0",
42 | "com.unity.modules.vr": "1.0.0",
43 | "com.unity.modules.wind": "1.0.0",
44 | "com.unity.modules.xr": "1.0.0"
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/AudioManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!11 &1
4 | AudioManager:
5 | m_ObjectHideFlags: 0
6 | m_Volume: 1
7 | Rolloff Scale: 1
8 | Doppler Factor: 1
9 | Default Speaker Mode: 2
10 | m_SampleRate: 0
11 | m_DSPBufferSize: 1024
12 | m_VirtualVoiceCount: 512
13 | m_RealVoiceCount: 32
14 | m_SpatializerPlugin:
15 | m_AmbisonicDecoderPlugin:
16 | m_DisableAudio: 0
17 | m_VirtualizeEffects: 1
18 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/ClusterInputManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!236 &1
4 | ClusterInputManager:
5 | m_ObjectHideFlags: 0
6 | m_Inputs: []
7 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/DynamicsManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!55 &1
4 | PhysicsManager:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 7
7 | m_Gravity: {x: 0, y: -9.81, z: 0}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_BounceThreshold: 2
10 | m_SleepThreshold: 0.005
11 | m_DefaultContactOffset: 0.01
12 | m_DefaultSolverIterations: 6
13 | m_DefaultSolverVelocityIterations: 1
14 | m_QueriesHitBackfaces: 0
15 | m_QueriesHitTriggers: 1
16 | m_EnableAdaptiveForce: 0
17 | m_ClothInterCollisionDistance: 0
18 | m_ClothInterCollisionStiffness: 0
19 | m_ContactsGeneration: 1
20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
21 | m_AutoSimulation: 1
22 | m_AutoSyncTransforms: 0
23 | m_ReuseCollisionCallbacks: 1
24 | m_ClothInterCollisionSettingsToggle: 0
25 | m_ContactPairsMode: 0
26 | m_BroadphaseType: 0
27 | m_WorldBounds:
28 | m_Center: {x: 0, y: 0, z: 0}
29 | m_Extent: {x: 250, y: 250, z: 250}
30 | m_WorldSubdivisions: 8
31 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/EditorBuildSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1045 &1
4 | EditorBuildSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | m_Scenes:
8 | - enabled: 1
9 | path: Assets/Scenes/SampleScene.unity
10 | guid: 2cda990e2423bbf4892e6590ba056729
11 | m_configObjects: {}
12 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/EditorSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!159 &1
4 | EditorSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 9
7 | m_ExternalVersionControlSupport: Visible Meta Files
8 | m_SerializationMode: 2
9 | m_LineEndingsForNewScripts: 0
10 | m_DefaultBehaviorMode: 1
11 | m_PrefabRegularEnvironment: {fileID: 0}
12 | m_PrefabUIEnvironment: {fileID: 0}
13 | m_SpritePackerMode: 4
14 | m_SpritePackerPaddingPower: 1
15 | m_EtcTextureCompressorBehavior: 1
16 | m_EtcTextureFastCompressor: 1
17 | m_EtcTextureNormalCompressor: 2
18 | m_EtcTextureBestCompressor: 4
19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmref
20 | m_ProjectGenerationRootNamespace:
21 | m_CollabEditorSettings:
22 | inProgressEnabled: 1
23 | m_EnableTextureStreamingInEditMode: 1
24 | m_EnableTextureStreamingInPlayMode: 1
25 | m_AsyncShaderCompilation: 1
26 | m_EnterPlayModeOptionsEnabled: 0
27 | m_EnterPlayModeOptions: 3
28 | m_ShowLightmapResolutionOverlay: 1
29 | m_UseLegacyProbeSampleCount: 1
30 | m_AssetPipelineMode: 1
31 | m_CacheServerMode: 0
32 | m_CacheServerEndpoint:
33 | m_CacheServerNamespacePrefix: default
34 | m_CacheServerEnableDownload: 1
35 | m_CacheServerEnableUpload: 1
36 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/GraphicsSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!30 &1
4 | GraphicsSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 13
7 | m_Deferred:
8 | m_Mode: 1
9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0}
10 | m_DeferredReflections:
11 | m_Mode: 1
12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0}
13 | m_ScreenSpaceShadows:
14 | m_Mode: 1
15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0}
16 | m_LegacyDeferred:
17 | m_Mode: 1
18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0}
19 | m_DepthNormals:
20 | m_Mode: 1
21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0}
22 | m_MotionVectors:
23 | m_Mode: 1
24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0}
25 | m_LightHalo:
26 | m_Mode: 1
27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0}
28 | m_LensFlare:
29 | m_Mode: 1
30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0}
31 | m_AlwaysIncludedShaders:
32 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
34 | m_PreloadedShaders: []
35 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
36 | type: 0}
37 | m_CustomRenderPipeline: {fileID: 11400000, guid: 9e9274cba93c5954285b2e4c863ba0ca,
38 | type: 2}
39 | m_TransparencySortMode: 0
40 | m_TransparencySortAxis: {x: 0, y: 0, z: 1}
41 | m_DefaultRenderingPath: 1
42 | m_DefaultMobileRenderingPath: 1
43 | m_TierSettings: []
44 | m_LightmapStripping: 0
45 | m_FogStripping: 0
46 | m_InstancingStripping: 0
47 | m_LightmapKeepPlain: 1
48 | m_LightmapKeepDirCombined: 1
49 | m_LightmapKeepDynamicPlain: 1
50 | m_LightmapKeepDynamicDirCombined: 1
51 | m_LightmapKeepShadowMask: 1
52 | m_LightmapKeepSubtractive: 1
53 | m_FogKeepLinear: 1
54 | m_FogKeepExp: 1
55 | m_FogKeepExp2: 1
56 | m_AlbedoSwatchInfos: []
57 | m_LightsUseLinearIntensity: 0
58 | m_LightsUseColorTemperature: 0
59 | m_LogWhenShaderIsCompiled: 0
60 | m_AllowEnlightenSupportForUpgradedProject: 1
61 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/NavMeshAreas.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!126 &1
4 | NavMeshProjectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 2
7 | areas:
8 | - name: Walkable
9 | cost: 1
10 | - name: Not Walkable
11 | cost: 1
12 | - name: Jump
13 | cost: 2
14 | - name:
15 | cost: 1
16 | - name:
17 | cost: 1
18 | - name:
19 | cost: 1
20 | - name:
21 | cost: 1
22 | - name:
23 | cost: 1
24 | - name:
25 | cost: 1
26 | - name:
27 | cost: 1
28 | - name:
29 | cost: 1
30 | - name:
31 | cost: 1
32 | - name:
33 | cost: 1
34 | - name:
35 | cost: 1
36 | - name:
37 | cost: 1
38 | - name:
39 | cost: 1
40 | - name:
41 | cost: 1
42 | - name:
43 | cost: 1
44 | - name:
45 | cost: 1
46 | - name:
47 | cost: 1
48 | - name:
49 | cost: 1
50 | - name:
51 | cost: 1
52 | - name:
53 | cost: 1
54 | - name:
55 | cost: 1
56 | - name:
57 | cost: 1
58 | - name:
59 | cost: 1
60 | - name:
61 | cost: 1
62 | - name:
63 | cost: 1
64 | - name:
65 | cost: 1
66 | - name:
67 | cost: 1
68 | - name:
69 | cost: 1
70 | - name:
71 | cost: 1
72 | m_LastAgentTypeID: -887442657
73 | m_Settings:
74 | - serializedVersion: 2
75 | agentTypeID: 0
76 | agentRadius: 0.5
77 | agentHeight: 2
78 | agentSlope: 45
79 | agentClimb: 0.75
80 | ledgeDropHeight: 0
81 | maxJumpAcrossDistance: 0
82 | minRegionArea: 2
83 | manualCellSize: 0
84 | cellSize: 0.16666667
85 | manualTileSize: 0
86 | tileSize: 256
87 | accuratePlacement: 0
88 | debug:
89 | m_Flags: 0
90 | m_SettingNames:
91 | - Humanoid
92 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/NetworkManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!149 &1
4 | NetworkManager:
5 | m_ObjectHideFlags: 0
6 | m_DebugLevel: 0
7 | m_Sendrate: 15
8 | m_AssetToPrefab: {}
9 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/Physics2DSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!19 &1
4 | Physics2DSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 4
7 | m_Gravity: {x: 0, y: -9.81}
8 | m_DefaultMaterial: {fileID: 0}
9 | m_VelocityIterations: 8
10 | m_PositionIterations: 3
11 | m_VelocityThreshold: 1
12 | m_MaxLinearCorrection: 0.2
13 | m_MaxAngularCorrection: 8
14 | m_MaxTranslationSpeed: 100
15 | m_MaxRotationSpeed: 360
16 | m_BaumgarteScale: 0.2
17 | m_BaumgarteTimeOfImpactScale: 0.75
18 | m_TimeToSleep: 0.5
19 | m_LinearSleepTolerance: 0.01
20 | m_AngularSleepTolerance: 2
21 | m_DefaultContactOffset: 0.01
22 | m_JobOptions:
23 | serializedVersion: 2
24 | useMultithreading: 0
25 | useConsistencySorting: 0
26 | m_InterpolationPosesPerJob: 100
27 | m_NewContactsPerJob: 30
28 | m_CollideContactsPerJob: 100
29 | m_ClearFlagsPerJob: 200
30 | m_ClearBodyForcesPerJob: 200
31 | m_SyncDiscreteFixturesPerJob: 50
32 | m_SyncContinuousFixturesPerJob: 50
33 | m_FindNearestContactsPerJob: 100
34 | m_UpdateTriggerContactsPerJob: 100
35 | m_IslandSolverCostThreshold: 100
36 | m_IslandSolverBodyCostScale: 1
37 | m_IslandSolverContactCostScale: 10
38 | m_IslandSolverJointCostScale: 10
39 | m_IslandSolverBodiesPerJob: 50
40 | m_IslandSolverContactsPerJob: 50
41 | m_AutoSimulation: 1
42 | m_QueriesHitTriggers: 1
43 | m_QueriesStartInColliders: 1
44 | m_CallbacksOnDisable: 1
45 | m_ReuseCollisionCallbacks: 1
46 | m_AutoSyncTransforms: 0
47 | m_AlwaysShowColliders: 0
48 | m_ShowColliderSleep: 1
49 | m_ShowColliderContacts: 0
50 | m_ShowColliderAABB: 0
51 | m_ContactArrowScale: 0.2
52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412}
53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432}
54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745}
55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804}
56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
57 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/PresetManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1386491679 &1
4 | PresetManager:
5 | m_ObjectHideFlags: 0
6 | m_DefaultList: []
7 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/ProjectVersion.txt:
--------------------------------------------------------------------------------
1 | m_EditorVersion: 2019.3.13f1
2 | m_EditorVersionWithRevision: 2019.3.13f1 (d4ddf0d95db9)
3 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/TagManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!78 &1
4 | TagManager:
5 | serializedVersion: 2
6 | tags:
7 | - Node
8 | layers:
9 | - Default
10 | - TransparentFX
11 | - Ignore Raycast
12 | -
13 | - Water
14 | - UI
15 | -
16 | -
17 | -
18 | -
19 | -
20 | -
21 | -
22 | -
23 | -
24 | -
25 | -
26 | -
27 | -
28 | -
29 | -
30 | -
31 | -
32 | -
33 | -
34 | -
35 | -
36 | -
37 | -
38 | -
39 | -
40 | -
41 | m_SortingLayers:
42 | - name: Default
43 | uniqueID: 0
44 | locked: 0
45 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/TimeManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!5 &1
4 | TimeManager:
5 | m_ObjectHideFlags: 0
6 | Fixed Timestep: 0.02
7 | Maximum Allowed Timestep: 0.1
8 | m_TimeScale: 1
9 | Maximum Particle Timestep: 0.03
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/URPProjectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!114 &1
4 | MonoBehaviour:
5 | m_ObjectHideFlags: 61
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | m_GameObject: {fileID: 0}
10 | m_Enabled: 1
11 | m_EditorHideFlags: 0
12 | m_Script: {fileID: 11500000, guid: 247994e1f5a72c2419c26a37e9334c01, type: 3}
13 | m_Name:
14 | m_EditorClassIdentifier:
15 | m_LastMaterialVersion: 1
16 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/UnityConnectSettings.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!310 &1
4 | UnityConnectSettings:
5 | m_ObjectHideFlags: 0
6 | serializedVersion: 1
7 | m_Enabled: 0
8 | m_TestMode: 0
9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events
10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events
11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com
12 | m_TestInitMode: 0
13 | CrashReportingSettings:
14 | m_EventUrl: https://perf-events.cloud.unity3d.com
15 | m_Enabled: 1
16 | m_LogBufferSize: 10
17 | m_CaptureEditorExceptions: 1
18 | UnityPurchasingSettings:
19 | m_Enabled: 0
20 | m_TestMode: 0
21 | UnityAnalyticsSettings:
22 | m_Enabled: 0
23 | m_TestMode: 0
24 | m_InitializeOnStartup: 1
25 | UnityAdsSettings:
26 | m_Enabled: 0
27 | m_InitializeOnStartup: 1
28 | m_TestMode: 0
29 | m_IosGameId:
30 | m_AndroidGameId:
31 | m_GameIds: {}
32 | m_GameId:
33 | PerformanceReportingSettings:
34 | m_Enabled: 0
35 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/VFXManager.asset:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!937362698 &1
4 | VFXManager:
5 | m_ObjectHideFlags: 0
6 | m_IndirectShader: {fileID: 0}
7 | m_RenderPipeSettingsPath:
8 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/ProjectSettings/XRSettings.asset:
--------------------------------------------------------------------------------
1 | {
2 | "m_SettingKeys": [
3 | "VR Device Disabled",
4 | "VR Device User Alert"
5 | ],
6 | "m_SettingValues": [
7 | "False",
8 | "False"
9 | ]
10 | }
--------------------------------------------------------------------------------
/CodeGraph_Unity/UIElementsSchema/UIElements.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/UIElementsSchema/UnityEditor.Experimental.GraphView.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/UIElementsSchema/UnityEditor.ShaderGraph.Drawing.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/UIElementsSchema/UnityEditor.UIElements.Debugger.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/CodeGraph_Unity/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Teodor Vecerdi
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/img/CodeGraph Banner.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/CodeGraph Banner.psd
--------------------------------------------------------------------------------
/img/Repository CodeGraph Social Banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/Repository CodeGraph Social Banner.jpg
--------------------------------------------------------------------------------
/img/Repository CodeGraph Social Banner.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/Repository CodeGraph Social Banner.psd
--------------------------------------------------------------------------------
/img/readme_banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/readme_banner.jpg
--------------------------------------------------------------------------------
/img/readme_editor1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/readme_editor1.jpg
--------------------------------------------------------------------------------
/img/readme_example1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/readme_example1.jpg
--------------------------------------------------------------------------------
/img/readme_example2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/readme_example2.jpg
--------------------------------------------------------------------------------
/img/readme_img1.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TeodorVecerdi/CodeGraph/8fc1204e0f46cbe3ba1e52413d671d95919d3460/img/readme_img1.jpeg
--------------------------------------------------------------------------------