Version: 2023.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.