Class StateCanvas
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[Canvas(typeof(StateGraph))]
public sealed class StateCanvas : VisualScriptingCanvas<StateGraph>, ICanvas, IDisposable, IDragAndDropHandler
Constructors
StateCanvas(StateGraph)
Declaration
public StateCanvas(StateGraph graph)
Parameters
Type | Name | Description |
---|---|---|
StateGraph | graph |
Properties
isCreatingTransition
Declaration
public bool isCreatingTransition { get; }
Property Value
Type | Description |
---|---|
Boolean |
shouldEdgePan
Declaration
protected override bool shouldEdgePan { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.shouldEdgePan
transitionSource
Declaration
public IState transitionSource { get; set; }
Property Value
Type | Description |
---|---|
IState |
Methods
AcceptsDragAndDrop()
Declaration
public override bool AcceptsDragAndDrop()
Returns
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.AcceptsDragAndDrop()
AddState(IState, Vector2)
Declaration
public void AddState(IState state, Vector2 position)
Parameters
Type | Name | Description |
---|---|---|
IState | state | |
Vector2 | position |
CancelTransition()
Declaration
public void CancelTransition()
Close()
Declaration
public override void Close()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.Close()
CompleteTransitionToNewState()
Declaration
public void CompleteTransitionToNewState()
DrawBackground()
Declaration
protected override void DrawBackground()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.DrawBackground()
DrawDragAndDropPreview()
Declaration
public override void DrawDragAndDropPreview()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.DrawDragAndDropPreview()
EndTransition(IState)
Declaration
public void EndTransition(IState destination)
Parameters
Type | Name | Description |
---|---|---|
IState | destination |
GetContextOptions()
Declaration
protected override IEnumerable<DropdownOption> GetContextOptions()
Returns
Type | Description |
---|---|
IEnumerable<DropdownOption> |
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.GetContextOptions()
HandleHighPriorityInput()
Declaration
protected override void HandleHighPriorityInput()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.HandleHighPriorityInput()
OnContext()
Declaration
protected override void OnContext()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.OnContext()
OnToolbarGUI()
Declaration
public override void OnToolbarGUI()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.OnToolbarGUI()
PerformDragAndDrop()
Declaration
public override void PerformDragAndDrop()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.PerformDragAndDrop()
ShrinkCopyGroup(HashSet<IGraphElement>)
Declaration
public override void ShrinkCopyGroup(HashSet<IGraphElement> copyGroup)
Parameters
Type | Name | Description |
---|---|---|
HashSet<IGraphElement> | copyGroup |
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.StateGraph>.ShrinkCopyGroup(System.Collections.Generic.HashSet<Unity.VisualScripting.IGraphElement>)
StartTransition(IState)
Declaration
public void StartTransition(IState source)
Parameters
Type | Name | Description |
---|---|---|
IState | source |