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:
parent
59c1e0d576
commit
7a4c475698
18
README.md
18
README.md
@ -1,3 +1,21 @@
|
||||
|
||||
### UnityNodeEditorCore
|
||||
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";
|
||||
}
|
||||
}
|
||||
```
|
||||

|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user