文档

Unity Engine

Unity Engine

VisualElementExtensions

VisualElementExtensions is a set of extension methods useful for VisualElement.
阅读时间1 分钟最后更新于 1 个月前

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 panel coordinates.
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 panel coordinates into the local space of the element.