Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


deviceName

The user defined name of the device (Read Only).
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static string deviceName { get; }

Remarks

This is typically the name of the device as it appears on the networks.
Android: There's no API for returning the device name. Therefore, Unity attempts to read
device_name
and
bluetooth_name
from secure system settings. If no value is found,
<unknown>
string is returned.
Will return SystemInfo.unsupportedIdentifier on platforms which don't support this property.
Additional Resources: SystemInfo.deviceModel.