Summary
Snaps the given `rotationEuler` to the nearest snap increment 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 SnapRotation(Vector3 rotationEuler, int axisIndex)
Parameters
Name | Type | Description |
---|---|---|
rotationEuler | Vector3 | |
axisIndex | int |
Return Value
Type | Description |
---|---|
Vector3 |