Component:PlaybackPositionDriver: Difference between revisions

From Resonite Wiki
add info
add link
 
Line 14: Line 14:
|Source|IPlayable| The playable audio to get the time from.
|Source|IPlayable| The playable audio to get the time from.
|UseNormalizedPosition|Bool| Whether to output a 0<->1 or an amount of seconds
|UseNormalizedPosition|Bool| Whether to output a 0<->1 or an amount of seconds
|WriteBack|Bool| Whether writing to the value of the field specified by <code>Target</code> will set the playback position.
|WriteBack|Bool| Whether writing to the value of the field specified by <code>Target</code> will set the playback position. See [[Drives#Write Backs|write backs]].
}}
}}



Latest revision as of 18:26, 17 February 2025

Component image 
Playback Position Driver component as seen in the Scene Inspector

The PlaybackPositionDriver component is used to output and/or influence the playback position of an IPlayable.

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. Some components stop their functionality when this field is disabled, but some don't.
Target field drive of Float The field to drive with the time position of Source from. If UseNormalizedPosition is true, this is 0<->1, else it's the amount of seconds from the start.
Source IPlayable The playable audio to get the time from.
UseNormalizedPosition Bool Whether to output a 0<->1 or an amount of seconds
WriteBack Bool Whether writing to the value of the field specified by Target will set the playback position. See write backs.

Usage

Can be used on a timeline to get the amount of time left or played in an audio clip that is playing.

Examples

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

See Also