1 using UnityEditor.Experimental.GraphView;
3 using UnityEngine.Experimental.VFX;
4 using UnityEngine.UIElements;
5 using System.Collections.Generic;
6 using Type = System.Type;
8 using UnityEngine.Profiling;
10 namespace UnityEditor.VFX.UI
12 class VFXBlockDataAnchor : VFXEditableDataAnchor
14 protected VFXBlockDataAnchor(Orientation anchorOrientation, Direction anchorDirection, Type type, VFXNodeUI node) : base(anchorOrientation, anchorDirection, type, node)
18 public static new VFXBlockDataAnchor Create(VFXDataAnchorController controller, VFXNodeUI node)
20 Profiler.BeginSample("VFXBlockDataAnchor.Create");
21 var anchor = new VFXBlockDataAnchor(controller.orientation, controller.direction, controller.portType, node);
22 anchor.m_EdgeConnector = new EdgeConnector<VFXDataEdge>(anchor);
23 anchor.controller = controller;
25 anchor.AddManipulator(anchor.m_EdgeConnector);