网站首页
编程语言
数据库
系统相关
其他分享
编程问答
ViewLocation
2024-09-16
UE4获取玩家视角相机的位置和朝向
游戏线程(GameThread)编辑器中(EWorldType::Editor,模拟运行或编辑状态)boolGetObserverView(FVector&Location,FRotator&Rotation)const{//WeareintheSIE(SimulateInEditor)if(GEditor->bIsSimulatingInEditor//classUEditorEngine*GEditor