Inheritance
UnitWidget<TUnit>
[Widget(typeof(IUnit))]
public class UnitWidget<TUnit> : NodeWidget<FlowCanvas, TUnit>, INodeWidget, IUnitWidget, IGraphElementWidget, IWidget, IDisposable where TUnit : class, IUnit
Type Parameters
Constructors
Declaration
public UnitWidget(FlowCanvas canvas, TUnit unit)
Parameters
Type |
Name |
Description |
FlowCanvas |
canvas |
|
TUnit |
unit |
|
Fields
Declaration
Field Value
Declaration
protected readonly List<IUnitPortWidget> inputs
Field Value
Declaration
protected readonly List<IUnitPortWidget> outputs
Field Value
Declaration
protected readonly List<IUnitPortWidget> ports
Field Value
settingLabelsContents
Declaration
protected readonly Dictionary<Metadata, GUIContent> settingLabelsContents
Field Value
subtitleContent
Declaration
protected readonly GUIContent subtitleContent
Field Value
surtitleContent
Declaration
protected readonly GUIContent surtitleContent
Field Value
titleContent
Declaration
protected readonly GUIContent titleContent
Field Value
Properties
Declaration
protected virtual NodeColorMix baseColor { get; }
Property Value
Declaration
public override bool canDelete { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.canDelete
Implements
Declaration
public override bool canDrag { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.canDrag
Implements
Declaration
public override bool canSelect { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.canSelect
Implements
Declaration
protected override NodeColorMix color { get; }
Property Value
Overrides
Unity.VisualScripting.NodeWidget<Unity.VisualScripting.FlowCanvas, TUnit>.color
contextOptions
Declaration
protected override IEnumerable<DropdownOption> contextOptions { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.contextOptions
Declaration
protected override bool dim { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.dim
Declaration
public override bool foregroundRequiresInput { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.foregroundRequiresInput
Implements
Declaration
public Rect headerAddonPosition { get; }
Property Value
Declaration
public Rect iconPosition { get; }
Property Value
Declaration
public List<Rect> iconsPositions { get; }
Property Value
Declaration
public Rect portsBackgroundPosition { get; }
Property Value
Declaration
public override Rect position { get; set; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.position
Implements
Declaration
public override IEnumerable<IWidget> positionDependers { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.positionDependers
Implements
Declaration
protected IEnumerable<Metadata> settings { get; }
Property Value
Declaration
public Dictionary<Metadata, Rect> settingsPositions { get; }
Property Value
Declaration
protected override NodeShape shape { get; }
Property Value
Overrides
Unity.VisualScripting.NodeWidget<Unity.VisualScripting.FlowCanvas, TUnit>.shape
Declaration
protected virtual bool showHeaderAddon { get; }
Property Value
Declaration
protected virtual bool showIcons { get; }
Property Value
Declaration
protected virtual bool showPorts { get; }
Property Value
Declaration
protected virtual bool showSettings { get; }
Property Value
Declaration
protected virtual bool showSubtitle { get; }
Property Value
Declaration
protected virtual bool showSurtitle { get; }
Property Value
Declaration
protected virtual bool showTitle { get; }
Property Value
Declaration
protected override bool snapToGrid { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.snapToGrid
Declaration
public Rect subtitlePosition { get; }
Property Value
Declaration
public override IEnumerable<IWidget> subWidgets { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.subWidgets
Implements
Declaration
public Rect surtitlePosition { get; }
Property Value
Declaration
public Rect titlePosition { get; }
Property Value
Declaration
protected TUnit unit { get; }
Property Value
Declaration
protected IUnitDebugData unitDebugData { get; }
Property Value
Methods
Declaration
protected virtual void CacheDefinition()
Declaration
protected override void CacheDescription()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.CacheDescription()
Declaration
protected override void CacheItemFirstTime()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.CacheItemFirstTime()
Declaration
protected override void CacheMetadata()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.CacheMetadata()
Declaration
public override void CachePosition()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.FlowCanvas, TUnit>.CachePosition()
Implements
Declaration
public override void Dispose()
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.Dispose()
Declaration
public override void DrawForeground()
Overrides
Unity.VisualScripting.NodeWidget<Unity.VisualScripting.FlowCanvas, TUnit>.DrawForeground()
Implements
Declaration
protected virtual void DrawHeaderAddon()
Declaration
protected void DrawIcon()
Declaration
protected void DrawIcons()
Declaration
protected void DrawPortsBackground()
Declaration
protected void DrawSetting(Metadata setting)
Parameters
Declaration
protected void DrawSubtitle()
Declaration
protected void DrawSurtitle()
Declaration
protected void DrawTitle()
Declaration
public override void ExpandCopyGroup(HashSet<IGraphElement> copyGroup)
Parameters
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.ExpandCopyGroup(System.Collections.Generic.HashSet<Unity.VisualScripting.IGraphElement>)
Implements
Declaration
public override void ExpandDragGroup(HashSet<IGraphElement> dragGroup)
Parameters
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.ExpandDragGroup(System.Collections.Generic.HashSet<Unity.VisualScripting.IGraphElement>)
Implements
Declaration
protected virtual float GetHeaderAddonHeight(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
Declaration
protected virtual float GetHeaderAddonWidth()
Returns
Declaration
public virtual Inspector GetPortInspector(IUnitPort port, Metadata metadata)
Parameters
Returns
Implements
Declaration
public override void HandleInput()
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, TUnit>.HandleInput()
Implements
Explicit Interface Implementations
Declaration
IUnit IUnitWidget.unit { get; }
Returns
Implements
Extension Methods