Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VisualElementExtensions

VisualElementExtensions is a set of extension methods useful for VisualElement.
Read time 1 minuteLast updated 4 days ago

Definition

public static class VisualElementExtensions

Static Methods

Method

Description

AddManipulatorAdd a manipulator associated to a VisualElement.
ChangeCoordinatesToTransforms a rectangle from the local space of an element to the local space of another element.
LocalToWorldTransforms a rectangle from the local space of the element to the world space.
RemoveManipulatorRemove a manipulator associated to a VisualElement.
StretchToParentSizeAligns a VisualElement's left, top, right and bottom edges with the corresponding edges of its parent.
StretchToParentWidthAligns a VisualElement's left and right edges with the corresponding edges of its parent.
WorldToLocalTransforms a rectangle from the world space to the local space of the element.