文档

Unity Engine

Unity Engine

DisplayLayoutChangedEventArgs

Contains information about a change in the display layout.
阅读时间1 分钟最后更新于 25 天前

Definition

  • Type: Struct
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public struct DisplayLayoutChangedEventArgs

Remarks

Unity passes this struct to the callbacks you register with DisplayInfo.RegisterLayoutChangedCallback.
This struct currently carries no data, so a callback can't tell from it which display changed or what changed about it. To respond to a layout change, call DisplayInfo.GetLayout from the callback to read the new layout.