#include <InteractableSpawnSystemComponent.h>
◆ UInteractableSpawnSystemComponent()
| UInteractableSpawnSystemComponent::UInteractableSpawnSystemComponent |
( |
| ) |
|
16{
17 PrimaryComponentTick.bCanEverTick = false;
18}
◆ ClearAll()
| void UInteractableSpawnSystemComponent::ClearAll |
( |
const bool |
bClearSpawnedActors = true | ) |
|
|
overridevirtual |
ISpawnSystemInterface를 구현.
28{
30 {
31 return;
32 }
33
34 if (!bClearSpawnedActors)
35 {
37 return;
38 }
39
41
43 {
44 if (IsValid(Interactable) == false || Interactable == nullptr)
45 {
46 continue;
47 }
48
50 {
52 }
53 else
54 {
55 Interactable->Destroy();
56 }
57 }
58
60}
TArray< TObjectPtr< AInteractableActor > > SpawnedInteractableActors
Definition InteractableSpawnSystemComponent.h:49
Definition ObjectPoolingInterface.h:12
Definition PoolWorldSubsystem.h:28
void ReturnActorToPool(AActor *ActorToReturn)
Definition PoolWorldSubsystem.cpp:272
다음을 참조함 : UPoolWorldSubsystem::ReturnActorToPool(), SpawnedInteractableActors.
◆ CollectSpawnedTargetables()
| void UInteractableSpawnSystemComponent::CollectSpawnedTargetables |
( |
TArray< ITargetableInterface * > & |
OutTargetables | ) |
const |
|
overridevirtual |
◆ DespawnInteractableActor()
| void UInteractableSpawnSystemComponent::DespawnInteractableActor |
( |
AActor * |
Interactable | ) |
|
◆ GetAllSpawnedInteractableActors()
| FORCEINLINE TArray< AInteractableActor * > UInteractableSpawnSystemComponent::GetAllSpawnedInteractableActors |
( |
| ) |
const |
|
inline |
◆ GetRecentlySpawnInteractableActor()
| FORCEINLINE AInteractableActor * UInteractableSpawnSystemComponent::GetRecentlySpawnInteractableActor |
( |
| ) |
const |
|
inline |
◆ Initialize()
| void UInteractableSpawnSystemComponent::Initialize |
( |
UStageSubsystem * |
InStageManagementSubsystem | ) |
|
|
overridevirtual |
◆ SpawnInteractableActor()
| AActor * UInteractableSpawnSystemComponent::SpawnInteractableActor |
( |
TSubclassOf< AActor > |
InteractableClass, |
|
|
const FVector & |
Location, |
|
|
const FRotator & |
Rotation |
|
) |
| |
◆ SpawnedInteractableActors
| TArray<TObjectPtr<AInteractableActor> > UInteractableSpawnSystemComponent::SpawnedInteractableActors |
|
private |
◆ StageManagementSystem
| TWeakObjectPtr<UStageSubsystem> UInteractableSpawnSystemComponent::StageManagementSystem |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: