文档

Unity Engine

Download Unity

Unity Engine

processorManufacturer

Specifies the manufacturer name of the processor in the user's device (Read Only).
阅读时间1 分钟最后更新于 2 个月前

Definition

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

Remarks

With
SystemInfo.processorManufacturer
and SystemInfo.processorModel values, you can categorize the devices running Unity applications to gather accurate performance metrics. You can use this data to test and optimize your application for improved performance.
Returns
unknown
on WebGL platforms which don't support this property.
Additional Resources: SystemInfo.processorModel

Examples

using UnityEngine;using TMPro;public class NewBehaviourScript : MonoBehaviour{ public TMP_Text DisplayText; private string _processorManufacturer; void Start() { _processorManufacturer = SystemInfo.processorManufacturer; DisplayText.text = _processorManufacturer; }}