989onan bot (talk | contribs) Automated: update SyncDelegates |
add sync delegate updates |
||
Line 14: | Line 14: | ||
== Sync Delegates == | == Sync Delegates == | ||
{{Table ComponentTriggers | {{Table ComponentTriggers | ||
|RemovePressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| | |RemovePressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Remove the delegate from the delegate holding field. | ||
|OpenInspectorButton:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| | |OpenInspectorButton:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Opens the inspector to the delegate location in the world if possible. | ||
}} | }} | ||
Latest revision as of 21:27, 19 March 2025
Component image 
Delegate Editor component as seen in the Scene Inspector

The DelegateEditor component is used in the Inspector window of Components where there is a field a sync delegate can be dropped into.
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. |
_targetDelegate
|
direct RelayRef`1<ISyncDelegate> | The Sync delegate to show. |
_textDrive
|
field drive of String | The text field to drive with the name of the Sync delegate method. |
_button
|
Button | The button to interface with the Sync delegate. |
Sync Delegates
Method Name | Method type and Arguments. | Is the method hidden? | Description |
---|---|---|---|
RemovePressed:ButtonEventHandler
|
ButtonEventHandler | ✓ | Remove the delegate from the delegate holding field. |
OpenInspectorButton:ButtonEventHandler
|
ButtonEventHandler | ✓ | Opens the inspector to the delegate location in the world if possible. |
Usage
This isn't usually used by the user, and falls into the category of Components used in Ref Hacking.
Examples
Used in the Inspector window of a Component:CharacterTeleporter for example.