| 989onan bot (talk | contribs)  Automated: update SyncDelegates | 989onan bot (talk | contribs)  Automated: update SyncDelegates | ||
| (One intermediate revision by the same user not shown) | |||
| Line 20: | Line 20: | ||
| == Sync Delegates == | == Sync Delegates == | ||
| {{Table ComponentTriggers | {{Table ComponentTriggers | ||
| |Call | |Call:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Call <code>Callback</code> sync delegate and provide it <code>Reference</code>. | ||
| |CallAndDestroy | |CallAndDestroy:[[Type:Action|Action]]|[[Type:Action|Action]]|false| Do <code>Call()</code> and then destroy this component. | ||
| }} | }} | ||
Latest revision as of 06:30, 17 March 2025
This article or section is a stub. You can help the Resonite wiki by expanding it.
Component image 
Callback Ref Argument component as seen in the Scene Inspector 

Similar to CallbackValueArgument but instead of a value it's a reference for an action.
There are some Sync Delegates in the game that match this component's requirements, but not many.
Fields
| Name | Type | Description | 
|---|---|---|
| persistent | Bool | Determines whether or not this item will be saved to the server. | 
| UpdateOrder | Int | Controls the order in which this component is updated. | 
| Enabled | Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. | 
| Reference | A | The reference to give to Callback | 
| Callback | delegate of identity Action`1<A> | The Sync Delegate to call and provide Referenceto. | 
Sync Delegates
| Method Name | Method type and Arguments. | Is the method hidden? | Description | 
|---|---|---|---|
| Call:Action | Action | X | Call Callbacksync delegate and provide itReference. | 
| CallAndDestroy:Action | Action | X | Do Call()and then destroy this component. | 
Usage
Examples
Can be used to call a delegate of identity Action`1<T> (an action that takes a reference type) and give it Reference as an argument.
