|
Can anyone shed some light on how to use the Handles.matrix to draw gizmos properly? I was trying to draw a rotation handle that is 0.5 times the size of the normal rotation handle in the SceneView. In OnSceneGUI I tried the following:
But this seems to make the rotation gizmo larger in my view, rather than 0.5 times the size of the normal gizmo?
(comments are locked)
|
|
The matrix only affects the position and rotation of the handle, not the size. Normally you can specify the size that you calculated with HandleUtility.GetHandleSize but the PositionHandle does that internally. Here's the (internal) implementation of PositionHandle ( thanks ILSpy ;) ) Have you got the RotationHandle as well?
Jun 14 '11 at 12:43 PM
hardwire
Sorry, i just went through some of my emails (350+ only from UnityAnswers).
Jun 30 '11 at 11:51 AM
Bunny83
(comments are locked)
|
|
In my experience changing the matrix doesn't have any effect for many functions (inluding But it might be quite difficult to do the full rotation handle. In my case I was happy with a simple one using
(comments are locked)
|

On a related note, is it possible to use Handles.matrix to resize text, like you can with GUI.matrix?