How to get the mac address of HoloLens 2 in Unreal Engine?

I would like to get the mac address of HoloLens 2 in Unreal Engine using either C++ or blueprint. Is there a way to get the mac address/serial number or any sort of solution to identify the uniqueness of the device?

Upvotes: 1

Views: 659

Answers (1)

Hernando - MSFT
Hernando - MSFT

Reputation: 2900

Since HoloLens App is a UWP app, you can use WinRT API methods contains in WinSDK. For example, you want to get the identifier of the local device would need EasClientDeviceInformation.Id in Windows.Security.ExchangeActiveSyncProvisioning namespace. For how to include WinRT libraries in your Unreal project, please see WinRT in Unreal

Upvotes: 0

Related Questions