Sync Delegate

From Resonite Wiki
(Redirected from Type:SyncDelegate`1)

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Sync Delegates are references that represent methods within the Resonite code. They sometimes take arguments depending on what kind of method they call.

Some components expose these methods by default such as StaticTexture2D. More hidden methods can be exposed when using the mod "Show Delegates" from Arti, to do so, go into the inspector of any slot and you should see "---- SYNC METHODS HERE ----", clicking on that should reveal the extra methods.

Sync delegates can be grabbed by the user and put into fields that accept them. Some (but not all!) of the components that have fields that accept sync delegates are Button, Button Action Trigger, Character Teleporter and much more.

Note: There is a minor bug where holding a sync delegate and clicking on a field that accepts it while holding will not work. Instead, the sync delegate has to be let go of while targeting the field for it to go into it.

When an event happens like a user pressing a button, Objects colliding, or generated events, the event can be received and sent around the hierarchy of the world using different components and trigger Sync Delegates along the way. Some sync delegate actions include but are not limited to: Spawning objects from the cloud (see Things to Avoid), Playing a sound or Randomly spawning objects.

The amount of sync delegate recievers/senders/types in the wiki are too much to list. So to get a running list, use the wiki tools to see what links to the pages: