VisualElement.worldTransform

public Matrix4x4 worldTransform;

Description

Returns a matrix that cumulates the following operations (in order): -Local Scaling -Local Rotation -Local Translation -Layout Translation -Parent worldTransform (recursive definition - consider identity when there is no parent)

Multiplying the layout rect by this matrix is incorrect because it already contains the translation.


Did you find this page useful? Please give it a rating: