In Unity I can read the playback time of an audio source using AudioSource.time.
I haven’t managed to find a similar function in Unreal. Is it possible?
In Unity I can read the playback time of an audio source using AudioSource.time.
I haven’t managed to find a similar function in Unreal. Is it possible?
ActiveSound as a PlaybackTime data member that you can access to.
I see thank you.
Can I use the same data member to make a sound play from a specific time?
It is probably not a good idea - the current interface already gives you this: the AudioComponent::Play and the UGameplayStatics::PlaySound*** all take an optional “StartTime” argument that does it.
Messing with this variable directly may result in unexpected behaviour, so you better restrain to use it as read-only.