Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RealignVerticesInBounds(IList<Vector2>, Rect, bool)

Realigns the vertices (in-place) inside their axis-aligned bounding-box.
Read time 1 minuteLast updated 11 days ago

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