VisualElementExtensions
VisualElementExtensions is a set of extension methods useful for VisualElement.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public static class VisualElementExtensions
Static Methods
Method | Description |
|---|---|
| AddManipulator | Add a manipulator associated to a VisualElement. |
| ChangeCoordinatesTo | Transforms a rectangle from the local space of an element to the local space of another element. |
| LocalToWorld | Transforms a rectangle from the local space of the element to the world space. |
| RemoveManipulator | Remove a manipulator associated to a VisualElement. |
| StretchToParentSize | Aligns a VisualElement's left, top, right and bottom edges with the corresponding edges of its parent. |
| StretchToParentWidth | Aligns a VisualElement's left and right edges with the corresponding edges of its parent. |
| WorldToLocal | Transforms a rectangle from the world space to the local space of the element. |