文档

Unity Engine

Unity Engine

targetDisplay

For Overlay mode, display index on which the UI canvas will appear.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public int targetDisplay { get; set; }

Remarks

This setting makes a Canvas render into the specified display. Maximum number of secondary displays (eg. monitors) supported is 8.
Additional Resources: Display class, Camera.targetDisplay.