Im creating a custom editor, and im stuck in the implementation of a zoom and pan funcionalities. Both are to be applied on a 2d editor window. I found Viewtool.pan, which i suppose to be usefull in this situation, but have no idea how to used it. Does anyone knows how to use it?
I don’t know this stuff but from what I see in doc you have zoom and pan tools already implemented (whatever they are) and you can activate them in scene view by setting viewTool property of Tools class with values ViewTool.Pan and ViewTool.Zoom
Thanks Pirs01 for your feedback. I check for documentation but i think Tools work only for scene view and not for EditorWindows. Didn´t find a proper solution. I guess ill have to start from scratch, anyway if a find a good solution ill share if you want.