UAudioComponent::Play

Begins playing the targeted Audio Component's sound at the designated Start Time, seeking into a sound.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UAudioComponent::Play()

UAudioCurveSourceComponent::Play()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/AudioComponent.h

Include

#include "Components/AudioComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/AudioComponent.cpp

Syntax

virtual void Play
(
    float StartTime
)

Remarks

Begins playing the targeted Audio Component's sound at the designated Start Time, seeking into a sound.

Parameters

Parameter

Description

StartTime

The offset, in seconds, to begin reading the sound at