Version: 2022.2
언어: 한국어
public static void SnapToGrid (Transform[] transforms, SnapAxis axis);
public static void SnapToGrid (Vector3[] positions, SnapAxis axis);

파라미터

transforms The transforms to snap.
positions The positions to snap.
axis The axes on which to apply snapping.

설명

Rounds each Transform.position or Vector3 to the closest multiple of EditorSnapSettings.gridSize.