//获得当前游戏模式
//UGameplayStatics::GetGameMode(this);
ACarDemoGameModeBase* CarGamemode;
//转成自己定义的GameMode类
CarGamemode=Cast<ACarDemoGameModeBase>(UGameplayStatics::GetGameMode(this));
UE4 获得GameMode
猜你喜欢
转载自blog.csdn.net/m0_37981386/article/details/83242337
今日推荐
周排行