Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
ULPP_ByTransform 클래스 참조

#include <LPP_ByTransform.h>

ULPP_ByTransform에 대한 상속 다이어그램 :
Inheritance graph
ULPP_ByTransform에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

virtual void PlacePlayer (UWorld *InWorld) override
 
- ULevelPlayerPlacer(으)로부터 상속된 Public 멤버 함수
 ULevelPlayerPlacer ()
 

Public 속성

FVector SpawnLocation = FVector::ZeroVector
 
FRotator SpawnRotation = FRotator::ZeroRotator
 

상세한 설명

지정된 위치(Location)와 회전(Rotation)으로 플레이어를 배치합니다. SpawnLocation / SpawnRotation 을 설정한 뒤 PlacePlayer()를 호출하세요.

멤버 함수 문서화

◆ PlacePlayer()

void ULPP_ByTransform::PlacePlayer ( UWorld *  InWorld)
overridevirtual
8{
9 if (InWorld == nullptr)
10 {
11 return;
12 }
13
14 APlayerController* PC = InWorld->GetFirstPlayerController();
15
16 if (PC == nullptr)
17 {
18 return;
19 }
20
21 APawn* Pawn = PC->GetPawn();
22
23 if (Pawn == nullptr)
24 {
25 return;
26 }
27
28 Pawn->SetActorLocationAndRotation(SpawnLocation, SpawnRotation, false, nullptr, ETeleportType::TeleportPhysics);
29}
FRotator SpawnRotation
Definition LPP_ByTransform.h:26
FVector SpawnLocation
Definition LPP_ByTransform.h:23

멤버 데이터 문서화

◆ SpawnLocation

FVector ULPP_ByTransform::SpawnLocation = FVector::ZeroVector

◆ SpawnRotation

FRotator ULPP_ByTransform::SpawnRotation = FRotator::ZeroRotator

이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: