기술 자료

Unity Engine

Unity Engine

pixelRect

Get the render rect for the Canvas.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public Rect pixelRect { get; }

Remarks

If in overlay mode this will be the screen dimensions. If in world mode this will be the camera screen viewport rect.