OSDN Git Service

Added Assets for main menu
[mindgames/Mindgames_main.git] / Mindgames / Library / PackageCache / com.unity.visualeffectgraph@6.9.0-preview / Editor / GraphView / Elements / VFXBlockDataAnchor.cs
1 using UnityEditor.Experimental.GraphView;
2 using UnityEngine;
3 using UnityEngine.Experimental.VFX;
4 using UnityEngine.UIElements;
5 using System.Collections.Generic;
6 using Type = System.Type;
7 using System.Linq;
8 using UnityEngine.Profiling;
9
10 namespace UnityEditor.VFX.UI
11 {
12     class VFXBlockDataAnchor : VFXEditableDataAnchor
13     {
14         protected VFXBlockDataAnchor(Orientation anchorOrientation, Direction anchorDirection, Type type, VFXNodeUI node) : base(anchorOrientation, anchorDirection, type, node)
15         {
16         }
17
18         public static new VFXBlockDataAnchor Create(VFXDataAnchorController controller, VFXNodeUI node)
19         {
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;
24
25             anchor.AddManipulator(anchor.m_EdgeConnector);
26             Profiler.EndSample();
27             return anchor;
28         }
29     }
30 }