You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor.Experimental.GraphView;
|
|
|
|
namespace UnityEditor.VFX.UI
|
|
{
|
|
abstract class VFXContextDataAnchorController : VFXDataAnchorController
|
|
{
|
|
public VFXContextDataAnchorController(VFXSlot model, VFXNodeController sourceNode, bool hidden) : base(model, sourceNode, hidden)
|
|
{
|
|
}
|
|
|
|
public override bool expandable
|
|
{
|
|
get { return VFXContextController.IsTypeExpandable(portType); }
|
|
}
|
|
}
|
|
|
|
class VFXContextDataInputAnchorController : VFXContextDataAnchorController
|
|
{
|
|
public VFXContextDataInputAnchorController(VFXSlot model, VFXNodeController sourceNode, bool hidden) : base(model, sourceNode, hidden)
|
|
{
|
|
}
|
|
|
|
public override Direction direction
|
|
{
|
|
get
|
|
{
|
|
return Direction.Input;
|
|
}
|
|
}
|
|
}
|
|
|
|
class VFXContextDataOutputAnchorController : VFXContextDataAnchorController
|
|
{
|
|
public VFXContextDataOutputAnchorController(VFXSlot model, VFXNodeController sourceNode, bool hidden) : base(model, sourceNode, hidden)
|
|
{
|
|
}
|
|
|
|
public override Direction direction
|
|
{
|
|
get
|
|
{
|
|
return Direction.Output;
|
|
}
|
|
}
|
|
}
|
|
}
|