DrawerFieldTestNode.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using GraphProcessor;
  5. using System.Linq;
  6. [System.Serializable, NodeMenuItem("Custom/Drawer Field Test")]
  7. public class DrawerFieldTestNode : BaseNode
  8. {
  9. [Input(name = "Vector 4"), ShowAsDrawer]
  10. public Vector4 vector4;
  11. [Input(name = "Vector 3"), ShowAsDrawer]
  12. public Vector3 vector3;
  13. [Input(name = "Vector 2"), ShowAsDrawer]
  14. public Vector2 vector2;
  15. [Input(name = "Float"), ShowAsDrawer]
  16. public float floatInput;
  17. [Input(name = "Vector 3 Int"), ShowAsDrawer]
  18. public Vector3Int vector3Int;
  19. [Input(name = "Vector 2 Int"), ShowAsDrawer]
  20. public Vector2Int vector2Int;
  21. [Input(name = "Int"), ShowAsDrawer]
  22. public int intInput;
  23. [Input(name = "Empty")]
  24. public int intInput2;
  25. [Input(name = "String"), ShowAsDrawer]
  26. public string stringInput;
  27. [Input(name = "Color"), ShowAsDrawer]
  28. new public Color color;
  29. [Input(name = "Game Object"), ShowAsDrawer]
  30. public GameObject gameObject;
  31. [Input(name = "Animation Curve"), ShowAsDrawer]
  32. public AnimationCurve animationCurve;
  33. [Input(name = "Rigidbody"), ShowAsDrawer]
  34. public Rigidbody rigidbody;
  35. [Input("Layer Mask"), ShowAsDrawer]
  36. public LayerMask layerMask;
  37. public override string name => "Drawer Field Test";
  38. protected override void Process() {}
  39. }