| Parameter | Description |
|---|---|
| ele | The element to use as a reference for the local space. |
| p | The point to transform, in local space. |
Vector2 A point in panel coordinates.
Transforms a point from the local space of the element to panel coordinates.
Attach the element to a panel. The element must have a valid VisualElement.layout.
Otherwise, this method might return invalid results.
If the element's transform contains 3D information, use
ele.worldTransform.MultiplyPoint3x4(p) to get a proper 3D transformation.
| Parameter | Description |
|---|---|
| ele | The element to use as a reference for the local space. |
| r | The rectangle to transform, in local space. |
Rect A rectangle in panel coordinates.
Transforms a rectangle from the local space of the element to panel coordinates.
Attach the element to a panel. The element must have a valid VisualElement.layout. Otherwise, this method might return invalid results.