Unity - Scripting API: Handles.Disc
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Parameters
| Parameter | Description |
|---|---|
| id | The control ID of the handle. |
| rotation | The rotation of the disc. |
| position | The center of the disc. |
| axis | The axis to rotate around. |
| size | The size of the disc in world space. |
| cutoffPlane | If true, only the front-facing half of the circle is draw / draggable. This is useful when you have many overlapping rotation axes (like in the default rotate tool) to avoid clutter. |
| snap | The grid size to snap to. |
Returns
Quaternion The new rotation value modified by the user's interaction with the handle. If the user has not moved the handle, it will return the same value as you passed into the function.
Description
Make a 3D disc that can be dragged with the mouse.
And the script attached to this Handle: