Documentation

Unity Engine

Download Unity

Unity Engine

EarlyUpdate.UpdateCanvasRectTransform

Native Player loop system that updates the RectTransform of each Canvas to match its screen or camera before scripts update.
Read time 1 minuteLast updated 6 days ago

Definition

public struct EarlyUpdate.UpdateCanvasRectTransform

Remarks

Unity updates canvases before any
Update
methods run, so that UI elements can respond to changes, such as a screen resize, in the same frame.
This struct identifies a native system in the Player loop. It has no members, and the system's update logic runs in native engine code. Use this type with PlayerLoopSystem.type to find the system when you reorder, replace, or remove it in a custom Player loop. For more information, refer to Customizing the Player loop.