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
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
public static void RealignVerticesInBounds(IList<Vector2> vertices, Rect bounds, bool flip)
Parameters
The vertices to realign
The bounds into which the vertices will be realigned
A boolean indicating whether to flip the coordinates on the Y axis