Inheritance
StateWidget<TState>
public abstract class StateWidget<TState> : NodeWidget<StateCanvas, TState>, INodeWidget, IStateWidget, IGraphElementWidget, IWidget, IDisposable where TState : class, IState
Type Parameters
Constructors
Declaration
protected StateWidget(StateCanvas canvas, TState state)
Parameters
Properties
Declaration
protected StateAnalysis analysis { get; }
Property Value
Declaration
protected virtual NodeColorMix baseColor { get; }
Property Value
Declaration
public override bool canDelete { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.canDelete
Implements
Declaration
public override bool canDrag { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.canDrag
Implements
Declaration
public virtual bool canForceEnter { get; }
Property Value
Declaration
public virtual bool canForceExit { get; }
Property Value
Declaration
public override bool canResizeHorizontal { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.canResizeHorizontal
Implements
Declaration
public override bool canSelect { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.canSelect
Implements
Declaration
public virtual bool canToggleStart { get; }
Property Value
Declaration
protected override NodeColorMix color { get; }
Property Value
Overrides
Unity.VisualScripting.NodeWidget<Unity.VisualScripting.StateCanvas, TState>.color
contentBackgroundPosition
Declaration
public Rect contentBackgroundPosition { get; }
Property Value
contentInnerPosition
Declaration
public Rect contentInnerPosition { get; }
Property Value
contentOuterPosition
Declaration
public Rect contentOuterPosition { get; }
Property Value
contextOptions
Declaration
protected override IEnumerable<DropdownOption> contextOptions { get; }
Property Value
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.contextOptions
Declaration
protected StateDescription description { get; }
Property Value
Declaration
protected override bool dim { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.StateCanvas, TState>.dim
Declaration
public override Rect position { get; set; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.StateCanvas, TState>.position
Implements
Declaration
public override IEnumerable<IWidget> positionDependers { get; }
Property Value
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.StateCanvas, TState>.positionDependers
Implements
Declaration
protected override NodeShape shape { get; }
Property Value
Overrides
Unity.VisualScripting.NodeWidget<Unity.VisualScripting.StateCanvas, TState>.shape
showContent
Declaration
protected virtual bool showContent { get; }
Property Value
Declaration
protected virtual bool showSummary { 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.StateCanvas, TState>.snapToGrid
Declaration
protected TState state { get; }
Property Value
Declaration
protected State.Data stateData { get; }
Property Value
Declaration
protected IStateDebugData stateDebugData { get; }
Property Value
Declaration
protected virtual string summary { get; set; }
Property Value
Declaration
public Rect summaryPosition { get; }
Property Value
Declaration
protected virtual string title { get; set; }
Property Value
Declaration
public Rect titlePosition { get; }
Property Value
Methods
Declaration
public override void BeforeFrame()
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.BeforeFrame()
Implements
Declaration
protected override void CacheDescription()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.StateCanvas, TState>.CacheDescription()
Declaration
public override void CachePosition()
Overrides
Unity.VisualScripting.Widget<Unity.VisualScripting.StateCanvas, TState>.CachePosition()
Implements
DrawContent()
Declaration
protected virtual void DrawContent()
DrawContentBackground()
Declaration
protected virtual void DrawContentBackground()
Declaration
public override void DrawForeground()
Overrides
Unity.VisualScripting.NodeWidget<Unity.VisualScripting.StateCanvas, TState>.DrawForeground()
Implements
Declaration
public override void ExpandCopyGroup(HashSet<IGraphElement> copyGroup)
Parameters
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.ExpandCopyGroup(System.Collections.Generic.HashSet<Unity.VisualScripting.IGraphElement>)
Implements
Declaration
public override void ExpandDragGroup(HashSet<IGraphElement> dragGroup)
Parameters
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.ExpandDragGroup(System.Collections.Generic.HashSet<Unity.VisualScripting.IGraphElement>)
Implements
GetContentHeight(Single)
Declaration
protected virtual float GetContentHeight(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
Declaration
public override void HandleInput()
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.StateCanvas, TState>.HandleInput()
Implements
Declaration
protected void MakeSelfTransition()
Declaration
protected void MakeTransition()
Declaration
protected void ToggleStart()
Explicit Interface Implementations
Declaration
IState IStateWidget.state { get; }
Returns
Implements
Extension Methods