UE4笔记---获取 PlayerController 对象

来源:互联网 发布:长春数控cnc编程招聘 编辑:程序博客网 时间:2024/06/10 16:28


UE4笔记---获取 PlayerController 对象

#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"

// UE4笔记---获取 PlayerController 对象APlayerController* PlayerController = UGameplayStatics::GetPlayerController(GWorld, 0);ATutorialsPlayerController* TutorialsPlayerController = Cast<ATutorialsPlayerController>(PlayerController);


原创粉丝点击