Class CreateStruct
Creates a struct with its default initializer.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
public sealed class CreateStruct : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Constructors
CreateStruct()
Declaration
public CreateStruct()
CreateStruct(Type)
Declaration
public CreateStruct(Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type |
Properties
canDefine
Gets a value indicating whether this unit can be defined.
Declaration
public override bool canDefine { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
enter
The entry point to create the struct. You can still get the return value without connecting this port.
Declaration
[DoNotSerializeAttribute]
public ControlInput enter { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
exit
The action to call once the struct has been created.
Declaration
[DoNotSerializeAttribute]
public ControlOutput exit { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
output
The created struct.
Declaration
[DoNotSerializeAttribute]
public ValueOutput output { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
type
Declaration
[SerializeAttribute]
public Type type { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Implements
IDisposable