文档

Unity Engine

Unity Engine

StretchToParentWidth(VisualElement)

Aligns a VisualElement's left and right edges with the corresponding edges of its parent.
阅读时间1 分钟最后更新于 21 天前

Definition

public static void StretchToParentWidth(this VisualElement elem)

Parameters

The element to be aligned with its parent

Remarks

This method provides a way to set the following styles in one operation: