#Tracking Custom Handles to Mouse
1 messages · Page 1 of 1 (latest)
This is my code atm (I'm running Unity 2020.3)
Would anyone be able to help me figure out how to make sure the handle always stays anchored to the mouse?
It is doing that because it is scaling the value
You probably want a FreeMove handle https://docs.unity3d.com/ScriptReference/Handles.FreeMoveHandle.html
I see
Can FreeMoveHandle be restricted to a single dimension of movement? Doing so was part of my motivation for using ScaleValueHandle
considering that the value being modified is a scalar
You just recreate the vector3 each time with a const y and z
same effect