123456789101112131415161718192021 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEditor;
- using UnityEditor.UIElements;
- using UnityEditor.Experimental.GraphView;
- using UnityEngine.UIElements;
- using GraphProcessor;
- [NodeCustomEditor(typeof(SwitchNode))]
- public class SwitchNodeView : BaseNodeView
- {
- public override void Enable()
- {
- var node = nodeTarget as SwitchNode;
- // Create your fields using node's variables and add them to the controlsContainer
- controlsContainer.Add(new Label("Hello World !"));
- }
- }
|