Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


layout

The position and size of the VisualElement relative to its parent, as computed by the layout system. (Read Only)
Read time 1 minuteLast updated 4 days ago

Definition

[CreateProperty(ReadOnly = true)]public Rect layout { get; }

Remarks

Before reading from this property, add it to a panel and wait for one frame to ensure that the element layout is computed. After the layout is computed, a GeometryChangedEvent will be sent on this element.