
5. [Unreal 5 / C++] 발사체와 오브젝트 풀링
·
Unreal 5/FPS Shooting
아마 이번 게시글이 FPS Shooting 태그의 마지막 게시글이 될 것 같다.이번 시간에는 기존 SpawnActor로 생성하던 발사체 객체에 더 효율적인 오브젝트 풀링을 적용해보자.1. PoolableActor 생성오브젝트 풀링의 적용 대상은 Actor이므로 Actor를 상속받는 PoolableActor 클래스를 만들어준다. PoolableActor.h#pragma once#include "CoreMinimal.h"#include "GameFramework/Actor.h"#include "PoolableActor.generated.h"UCLASS()class PROJECT_4_API APoolableActor : public AActor{ GENERATED_BODY() public: APoolabl..