IGEditorUtils.

SnapScale(Vector3, int) Method

Summary

Snaps the given `scale` to the nearest snap increment on the specified axis (as specified in Edit/Snap Settings).

Syntax

public static Vector3 SnapScale(Vector3 scale, int axisIndex)

Parameters

Name Type Description
scale Vector3
axisIndex int

Return Value

Type Description
Vector3