The '''PlaybackPositionDriver''' component is used to output and/or influence the playback position of an [[Type:IPlayable|IPlayable]].
<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Target|IField`1|TypeString0=IField<float>|
|Target|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv0=true| The field to drive with the time position of <code>Source</code> from. If <code>UseNormalizedPosition</code> is true, this is 0<->1, else it's the amount of seconds from the start.
|Source|IPlayable|
|Source|IPlayable| The playable audio to get the time from.
|UseNormalizedPosition|Bool|
|UseNormalizedPosition|Bool| Whether to output a 0<->1 or an amount of seconds
|WriteBack|Bool|
|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]].
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
Can be used on a timeline to get the amount of time left or played in an audio clip that is playing.
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}
<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
* [[Component:PlaybackSynchronizer]]
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Playback Position Driver]]
[[Category:Components{{#translation:}}|Playback Position Driver]]
[[Category:Components:Media:Utility{{#translation:}}|Playback Position Driver]]
[[Category:Components:Media:Utility{{#translation:}}|Playback Position Driver]]
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.
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.