ListNode.cs 489 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using GraphProcessor;
  5. using System.Linq;
  6. [System.Serializable, NodeMenuItem("Custom/List")]
  7. public class ListNode : BaseNode
  8. {
  9. [Output(name = "Out")]
  10. public Vector4 output;
  11. [Input(name = "In"), SerializeField]
  12. public Vector4 input;
  13. public List<GameObject> objs = new List<GameObject>();
  14. public override string name => "List";
  15. protected override void Process()
  16. {
  17. output = input;
  18. }
  19. }