Summary
Snaps the given `rotation` 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 Quaternion SnapRotation(Quaternion rotation, int axisIndex)
Parameters
| Name | Type | Description |
|---|---|---|
| rotation | Quaternion | |
| axisIndex | int |
Return Value
| Type | Description |
|---|---|
| Quaternion |