1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-21 01:36:03 +08:00

Update README.md

This commit is contained in:
Thor Brigsted 2017-09-25 00:24:04 +02:00 committed by GitHub
parent 59c1e0d576
commit 7a4c475698

View File

@ -1,3 +1,21 @@
### UnityNodeEditorCore ### UnityNodeEditorCore
A simple, userfriendly node editor framework for unity. Ideal as a base for custom state machines, dialogue systems, decision makers etc. A simple, userfriendly node editor framework for unity. Ideal as a base for custom state machines, dialogue systems, decision makers etc.
---
Node example:
```csharp
[System.Serializable]
public class MathNode : Node {
[Input] public float a;
[Input] public float b;
[Output] public float result;
public enum MathType { Add, Subtract, Multiply, Divide}
public MathType mathType = MathType.Add;
protected override void Init() {
name = "Math";
}
}
```
![editor](https://user-images.githubusercontent.com/6402525/30787371-1c3ae552-a187-11e7-853a-214914c2ba69.PNG)