Skip to content
This repository was archived by the owner on May 16, 2021. It is now read-only.

Commit 2fcccb2

Browse files
committed
Add a few examples
1 parent 575b023 commit 2fcccb2

File tree

16 files changed

+52
-531
lines changed

16 files changed

+52
-531
lines changed

CodeGraph_Unity/Assets/CodeGraph/Examples/Basics.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CodeGraph_Unity/Assets/CodeGraph/Examples/Basics/Properties.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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: <Speed>" where <Speed> is the value of the property
10+
created previously.

CodeGraph_Unity/Assets/CodeGraph/Examples/Basics/Properties/Explanation.txt.meta

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CodeGraph_Unity/Assets/Plugins/GitHub.meta

Lines changed: 0 additions & 9 deletions
This file was deleted.

CodeGraph_Unity/Assets/Plugins/GitHub/Editor.meta

Lines changed: 0 additions & 9 deletions
This file was deleted.

CodeGraph_Unity/Assets/Plugins/GitHub/Editor/x64.meta

Lines changed: 0 additions & 9 deletions
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)