UEditorEngine::ResetPreviewAudioComponent

Returns an audio component linked to the current scene that it is safe to play a sound on

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp

Syntax

UAudioComponent * ResetPreviewAudioComponent
(
    class USoundBase * Sound,
    class USoundNode * SoundNode
)

Remarks

Returns an audio component linked to the current scene that it is safe to play a sound on

Parameters

Parameter

Description

Sound

A sound to attach to the audio component

SoundNode

A sound node that is attached to the audio component when the sound is NULL

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss