typedef TWeakPtr<Combine_Base> wpCombineBase;
TSharedPtr<Combine_EditorLogin> spCombineEditorLogin =
StaticCastSharedPtr<Combine_EditorLogin>(retTop);
//스태틱 캐스팅과 콘스트 캐스팅은 지원하는데 Dynamic cast 는 없다
TSharedPtr<Combine_EditorGameSvrAuth> spCombineEditorGameSvrAuth =
StaticCastSharedPtr<Combine_EditorGameSvrAuth>(retTop);
//TweakPtr 이 존재하는데 C++ 에서는 Lock() 함수지만 Unreal 에서는 Pin()
//이라는 이름으로 shared_ptr 로 convert 하는 함수를 지원한다
auto pred = [](wpCombineBase elem1)->bool {
return elem1.Pin()->GetTypeID() == "EditorLogin";
};
반응형
'게임엔진(GameEngine) > Unreal4' 카테고리의 다른 글
int 를 FString 으로 변환하기 또는 FString 을 다른 자료형 타입으로 변환하기 (0) | 2016.07.26 |
---|---|
c++ 에서 블루프린트에 스트링/로그 출력 (0) | 2016.07.20 |
how to create only header file while exist inside include generate.h ? , 하지만 이미 자동으로 UHT 가 자동으로 만든다 (0) | 2016.07.13 |
액터의 생명주기 (0) | 2016.07.13 |
String 과 FString 변환, String Conversions: FString to FName, FString to Int32, Float to FString (0) | 2016.07.12 |