Class LiteralWidget
Inheritance
LiteralWidget
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[Widget(typeof(Literal))]
public sealed class LiteralWidget : UnitWidget<Literal>, INodeWidget, IUnitWidget, IGraphElementWidget, IWidget, IDisposable
Constructors
LiteralWidget(FlowCanvas, Literal)
Declaration
public LiteralWidget(FlowCanvas canvas, Literal unit)
Parameters
Type | Name | Description |
---|---|---|
FlowCanvas | canvas | |
Literal | unit |
Properties
foregroundRequiresInput
Declaration
public override bool foregroundRequiresInput { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.UnitWidget<Unity.VisualScripting.Literal>.foregroundRequiresInput
showHeaderAddon
Declaration
protected override bool showHeaderAddon { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Unity.VisualScripting.UnitWidget<Unity.VisualScripting.Literal>.showHeaderAddon
Methods
BeforeFrame()
Declaration
public override void BeforeFrame()
Overrides
Unity.VisualScripting.GraphElementWidget<Unity.VisualScripting.FlowCanvas, Unity.VisualScripting.Literal>.BeforeFrame()
DrawHeaderAddon()
Declaration
protected override void DrawHeaderAddon()
Overrides
Unity.VisualScripting.UnitWidget<Unity.VisualScripting.Literal>.DrawHeaderAddon()
GetHeaderAddonHeight(Single)
Declaration
protected override float GetHeaderAddonHeight(float width)
Parameters
Type | Name | Description |
---|---|---|
Single | width |
Returns
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.UnitWidget<Unity.VisualScripting.Literal>.GetHeaderAddonHeight(System.Single)
GetHeaderAddonWidth()
Declaration
protected override float GetHeaderAddonWidth()
Returns
Type | Description |
---|---|
Single |
Overrides
Unity.VisualScripting.UnitWidget<Unity.VisualScripting.Literal>.GetHeaderAddonWidth()