ForLoopNodeView.cs 566 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEditor;
  5. using UnityEditor.UIElements;
  6. using UnityEditor.Experimental.GraphView;
  7. using UnityEngine.UIElements;
  8. using GraphProcessor;
  9. [NodeCustomEditor(typeof(ForLoopNode))]
  10. public class ForLoopNodeView : BaseNodeView
  11. {
  12. public override void Enable()
  13. {
  14. var node = nodeTarget as ForLoopNode;
  15. DrawDefaultInspector();
  16. // Create your fields using node's variables and add them to the controlsContainer
  17. // controlsContainer.Add(new Label("Hello World !"));
  18. }
  19. }