Summary
Snaps the given `position` to the grid on the specified axis (as specified in Edit/Snap Settings).
- Assembly
- Kybernetik
.InspectorGadgets .Editor .dll - Namespace
- InspectorGadgets
.Editor - Containing Type
- IGEditorUtils
Syntax
public static Vector3 SnapPosition(Vector3 position, int axisIndex)
Parameters
Name | Type | Description |
---|---|---|
position | Vector3 | |
axisIndex | int |
Return Value
Type | Description |
---|---|
Vector3 |