Component:PlaybackSynchronizer

From Resonite Wiki
Revision as of 17:54, 24 December 2024 by 989onan (talk | contribs) (hey! I used this one before!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Playback Synchronizer component as seen in the Scene Inspector

The PlaybackSynchronizer component is used to make two Audio Clips play together in unison, play at the same time, or to synchronize.

Fields

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.
Target direct DriveRef`1<SyncPlayback> The playable to synchronize the playback position with the position of Source.
Source IPlayable The playable that will drive Target's playback
UseNormalizedPosition Bool Whether to speed up or slow down the playback of Target if the duration doesn't match.
PositionOffset Float How many seconds/normalized position to offset the Target's synchronization with Source's position.
PositionRate Float How much to multiply Source's position before driving Target's position with it.

Usage

This can be used with any playable like an Component:Animator or otherwise with another animator or audio. It can also be used to synchronize Videos with each other. This can be useful when you want animations/videos to sync up with audio, in perfect unison without having to worry about networking.

Examples

Used in 989onan's MMD player and Emote System to sync audio with the dance when the user is dancing with the system.

See Also