您的位置:首页 > 产品设计 > UI/UE

UE4 执行Console Command ----ExecuteConsoleCommand

2015-12-10 21:25 609 查看
void UKismetSystemLibrary::ExecuteConsoleCommand(UObject* WorldContextObject, const FString& Command, APlayerController* Player)
{
// First, try routing through the primary player
APlayerController* TargetPC = Player ? Player : UGameplayStatics::GetPlayerController(WorldContextObject, 0);
if( TargetPC )
{
TargetPC->ConsoleCommand(Command, true);
}
}


ExecuteConsoleCommand
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: