Class 를 전방선언 하는 방법

여지껏 .h 에서 선언되지 않은 헤더를 .h 에서 작성하면 빨간줄이 떠서 최상단에 class 뭐뭐 해서 전방선언을 했었어야 했는데 , 그냥 선언할때 앞에 class 를 붙이면 알아서 된다는 사실을 처음 알았다..!

Untitled

UE 에서의 inline 함수 선언..!

Untitled

오…오오….!

UPROPERTY

( 어디든 표시 , 블루프린트에서 읽을수만 있도록 , 카테고리 지정 , Private 멤버인데도 접근 가능하게! )

// For Garbege Collection 
	UPROPERTY(VisibleAnywhere , BlueprintReadOnly,Category = Camera,mete = (AllowPrivateAccess = "true"))
	class USpringArmComponent* CameraBoom;

SprintArmComponent 헤더 선언을 하는데 특이하게 솔루션 탐색기를 사용하는 법을 알려 주었다

SE 에서 SprintArmComponent.h 를 찾고 해당 .h 의 Property 를 통해 경로를 알아내고 헤더를 선언하였다

Untitled

CameraBoom

Untitled