UE4笔记---获取 PlayerController 对象
程序员文章站
2024-03-23 23:58:58
...
UE4笔记---获取 PlayerController 对象
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
// UE4笔记---获取 PlayerController 对象
APlayerController* PlayerController = UGameplayStatics::GetPlayerController(GWorld, 0);
ATutorialsPlayerController* TutorialsPlayerController = Cast<ATutorialsPlayerController>(PlayerController);
上一篇: 树莓派3交叉编译u-boot及第一次使用