#include <AudioEmitterComponent.h>
|
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
| |
◆ UAudioEmitterComponent()
| UAudioEmitterComponent::UAudioEmitterComponent |
( |
| ) |
|
13{
14 PrimaryComponentTick.bCanEverTick = false;
15}
◆ EndPlay()
| void UAudioEmitterComponent::EndPlay |
( |
const EEndPlayReason::Type |
EndPlayReason | ) |
|
|
overrideprotectedvirtual |
119{
121
122 Super::EndPlay(EndPlayReason);
123}
void StopAllLoopAudioTag()
Definition AudioEmitterComponent.cpp:101
다음을 참조함 : StopAllLoopAudioTag().
◆ GetAudioSubsystem()
◆ PlayAudioTag()
| bool UAudioEmitterComponent::PlayAudioTag |
( |
FGameplayTag |
AudioTag | ) |
|
29{
30 AActor* OwnerActor = GetOwner();
31 if (OwnerActor == nullptr)
32 {
33 return false;
34 }
35
37}
bool PlayAudioTagAtLocation(FGameplayTag AudioTag, FVector Location)
Definition AudioEmitterComponent.cpp:39
다음을 참조함 : PlayAudioTagAtLocation().
◆ PlayAudioTagAtLocation()
| bool UAudioEmitterComponent::PlayAudioTagAtLocation |
( |
FGameplayTag |
AudioTag, |
|
|
FVector |
Location |
|
) |
| |
40{
42 if (AudioSubsystem == nullptr)
43 {
44 return false;
45 }
46
48}
TObjectPtr< UAudioData > AudioData
Definition AudioEmitterComponent.h:48
UGlobalAudioSubsystem * GetAudioSubsystem() const
Definition AudioEmitterComponent.cpp:125
bool PlayAudioTagAtLocation(UAudioData *SourceAudioData, FGameplayTag AudioTag, FVector Location)
Definition GlobalAudioSubsystem.cpp:142
다음을 참조함 : AudioData, GetAudioSubsystem(), UGlobalAudioSubsystem::PlayAudioTagAtLocation().
다음에 의해서 참조됨 : PlayAudioTag().
◆ SetAudioData()
| void UAudioEmitterComponent::SetAudioData |
( |
UAudioData * |
InAudioData | ) |
|
◆ StartLoopAudioTag()
| bool UAudioEmitterComponent::StartLoopAudioTag |
( |
FGameplayTag |
AudioTag, |
|
|
bool |
bRestartIfAlreadyPlaying = false |
|
) |
| |
51{
53 {
54 if (bRestartIfAlreadyPlaying == false)
55 {
56 return true;
57 }
58
60 }
61
62 AActor* OwnerActor = GetOwner();
63 if (OwnerActor == nullptr)
64 {
65 return false;
66 }
67
69 if (AudioSubsystem == nullptr)
70 {
71 return false;
72 }
73
74 UFMODAudioComponent* LoopAudioComponent = AudioSubsystem->
StartLoopAudioTag(
AudioData, AudioTag, OwnerActor->GetRootComponent());
75 if (LoopAudioComponent == nullptr)
76 {
77 return false;
78 }
79
81 return true;
82}
TMap< FGameplayTag, TObjectPtr< UFMODAudioComponent > > ActiveLoopAudioSounds
Definition AudioEmitterComponent.h:51
void StopLoopAudioTag(FGameplayTag AudioTag)
Definition AudioEmitterComponent.cpp:84
UFMODAudioComponent * StartLoopAudioTag(UAudioData *SourceAudioData, FGameplayTag AudioTag, USceneComponent *AttachToComponent)
Definition GlobalAudioSubsystem.cpp:161
다음을 참조함 : ActiveLoopAudioSounds, AudioData, GetAudioSubsystem(), UGlobalAudioSubsystem::StartLoopAudioTag(), StopLoopAudioTag().
◆ StopAllLoopAudioTag()
| void UAudioEmitterComponent::StopAllLoopAudioTag |
( |
| ) |
|
◆ StopLoopAudioTag()
| void UAudioEmitterComponent::StopLoopAudioTag |
( |
FGameplayTag |
AudioTag | ) |
|
◆ ActiveLoopAudioSounds
| TMap<FGameplayTag, TObjectPtr<UFMODAudioComponent> > UAudioEmitterComponent::ActiveLoopAudioSounds |
|
protected |
◆ AudioData
| TObjectPtr<UAudioData> UAudioEmitterComponent::AudioData |
|
protected |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: