Skip to content

Commit 0cab05f

Browse files
author
Antoine Lelièvre
committed
Rename SerializedFieldTestNode to DrawerFieldTestNode
1 parent ac1fea1 commit 0cab05f

File tree

4 files changed

+58
-50
lines changed

4 files changed

+58
-50
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
using GraphProcessor;
5+
using System.Linq;
6+
7+
[System.Serializable, NodeMenuItem("Custom/Drawer Field Test")]
8+
public class DrawerFieldTestNode : BaseNode
9+
{
10+
11+
[Input(name = "Vector 4"), ShowAsDrawer]
12+
public Vector4 vector4;
13+
14+
[Input(name = "Vector 3"), ShowAsDrawer]
15+
public Vector3 vector3;
16+
17+
[Input(name = "Vector 2"), ShowAsDrawer]
18+
public Vector2 vector2;
19+
20+
[Input(name = "Float"), ShowAsDrawer]
21+
public float floatInput;
22+
23+
[Input(name = "Int"), ShowAsDrawer]
24+
public int intInput;
25+
26+
[Input(name = "Empty")]
27+
public int intInput2;
28+
29+
[Input(name = "String"), ShowAsDrawer]
30+
public string stringInput;
31+
32+
[Input(name = "Color"), ShowAsDrawer]
33+
public Color color;
34+
35+
[Input(name = "Game Object"), ShowAsDrawer]
36+
public GameObject gameObject;
37+
38+
[Input(name = "Animation Curve"), ShowAsDrawer]
39+
public AnimationCurve animationCurve;
40+
41+
[Input(name = "Rigidbody"), ShowAsDrawer]
42+
public Rigidbody rigidbody;
43+
44+
public override string name => "Drawer Field Test";
45+
46+
protected override void Process() {}
47+
}

Assets/Examples/DefaultNodes/Nodes/DrawerFieldTestNode.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.

Assets/Examples/DefaultNodes/Nodes/SerializedFieldTestNode.cs

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

Assets/Examples/DefaultNodes/Nodes/SerializedFieldTestNode.cs.meta

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

0 commit comments

Comments
 (0)