Currently, editing a Vector3 requires me to manually adjust the x, y, and z values in the inspector. I need an option to be able to visualize and edit Vector3s like I do with the 3 draggable arrows used to edit transform positions.
I need this option for multiple Vector3s in many different classes. I already use PropertyDrawers extensively but I can’t figure out how to do this with PropertyDrawers. Is there an elegant solution for visualizing and editing Vector3s in the scene?
This will require a combination of using Handles and OnSceneGUI
If those bits of information aint enough, lemme know and ill elaborate. But they are the main API you’ll need to understand to get the functionality working.
This is how you would visualize your vector… if you want to make those handles clickable…
if(Handles.Button(blah, blah, Handles.ArrowCap))
{
//do stuff - like capture mouse pos, update current vector values... Handling dragging could be fun :p
}
Do you know how to setup your scene view delegate? Heres a link if not sure…