Class Literal
Returns a constant value defined from the editor.
Syntax
public sealed class Literal : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Constructors
Literal()
Declaration
[Obsolete("This parameterless constructor is only made public for serialization. Use another constructor instead.")]
public Literal()
Literal(Type)
Declaration
public Literal(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Literal(Type, Object)
Declaration
public Literal(Type type, object value)
Parameters
Properties
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Overrides
output
Declaration
[DoNotSerialize]
public ValueOutput output { get; }
Property Value
type
Declaration
[Serialize]
public Type type { get; }
Property Value
value
Declaration
[DoNotSerialize]
public object value { get; set; }
Property Value
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Extension Methods