UE4获得机器码

来源:互联网 发布:wifi连接上没有网络 编辑:程序博客网 时间:2024/06/04 19:33

在C++中,添加代码。蓝图显示

参考地址:https://answers.unrealengine.com/questions/229567/does-ue4-provide-a-hardware-id.html

代码如下:

UFUNCTION(BlueprintCallable, Category = "Custom")FString getHardwareID();FString UNetGameInstance::getHardwareID(){return FPlatformMisc::GetMachineId().ToString();}



原创粉丝点击