IGEditorUtils.

SnapPosition(Vector3, int) Method

Summary

Snaps the given `position` to the grid on the specified axis (as specified in Edit/Snap Settings).

Syntax

public static Vector3 SnapPosition(Vector3 position, int axisIndex)

Parameters

Name Type Description
position Vector3
axisIndex int

Return Value

Type Description
Vector3