Class Cache
Caches the input so that all nodes connected to the output retrieve the value only once.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitOrderAttribute]
public sealed class Cache : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
enter
The moment at which to cache the value. The output value will only get updated when this gets triggered.
Declaration
[DoNotSerializeAttribute]
public ControlInput enter { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
exit
The action to execute once the value has been cached.
Declaration
[DoNotSerializeAttribute]
public ControlOutput exit { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
input
The value to cache when the node is entered.
Declaration
[DoNotSerializeAttribute]
public ValueInput input { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
output
The cached value, as it was the last time this node was entered.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueOutput output { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Implements
IDisposable