Class FlowCanvas
Syntax
[Canvas(typeof(FlowGraph))]
public sealed class FlowCanvas : VisualScriptingCanvas<FlowGraph>, ICanvas, IDisposable, IDragAndDropHandler
Constructors
FlowCanvas(FlowGraph)
Declaration
public FlowCanvas(FlowGraph graph)
Parameters
Fields
inspectorZoomThreshold
Declaration
public const float inspectorZoomThreshold = 0.7F
Field Value
Properties
connectionEnd
Declaration
public Vector2 connectionEnd { get; set; }
Property Value
connectionSource
Declaration
public IUnitPort connectionSource { get; set; }
Property Value
isCreatingConnection
Declaration
public bool isCreatingConnection { get; }
Property Value
shouldEdgePan
Declaration
protected override bool shouldEdgePan { get; }
Property Value
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.shouldEdgePan
showRelations
Declaration
public bool showRelations { get; set; }
Property Value
Methods
AcceptsDragAndDrop()
Declaration
public override bool AcceptsDragAndDrop()
Returns
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.AcceptsDragAndDrop()
AddUnit(IUnit, Vector2)
Declaration
public void AddUnit(IUnit unit, Vector2 position)
Parameters
CancelConnection()
Declaration
public void CancelConnection()
Close()
Declaration
public override void Close()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.Close()
DrawDragAndDropPreview()
Declaration
public override void DrawDragAndDropPreview()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.DrawDragAndDropPreview()
GetContextOptions()
Declaration
protected override IEnumerable<DropdownOption> GetContextOptions()
Returns
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.GetContextOptions()
Declaration
protected override void HandleHighPriorityInput()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.HandleHighPriorityInput()
NewUnitContextual()
Declaration
public void NewUnitContextual()
OnContext()
Declaration
protected override void OnContext()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.OnContext()
Declaration
public override void OnToolbarGUI()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.OnToolbarGUI()
Declaration
public override void PerformDragAndDrop()
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.PerformDragAndDrop()
ShrinkCopyGroup(HashSet<IGraphElement>)
Declaration
public override void ShrinkCopyGroup(HashSet<IGraphElement> copyGroup)
Parameters
Overrides
Unity.VisualScripting.VisualScriptingCanvas<Unity.VisualScripting.FlowGraph>.ShrinkCopyGroup(System.Collections.Generic.HashSet<Unity.VisualScripting.IGraphElement>)
Extension Methods