文档

Unity Engine

Unity Engine

RealignVerticesInBounds(IList<Vector2>, Rect, bool)

Realigns the vertices (in-place) inside their axis-aligned bounding-box.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static void RealignVerticesInBounds(IList<Vector2> vertices, Rect bounds, bool flip)

Parameters

The vertices to realign

bounds

The bounds into which the vertices will be realigned

flip

A boolean indicating whether to flip the coordinates on the Y axis