Closed hailstorm75 closed 3 months ago
Hi! You should be able to modify the gestures at runtime, however it seems that the select gesture property is missing the setter. I'll create a PR to address that. Do you build from the source code or from the nuget package?
I use the NuGet package
I created the PR and, it looks like not all the gestures were customizable at runtime, especially the ones used for the EditorCommands
. Therefore it resulted in more work than expected. Could you please let me know if this suits your needs? I'm open to suggestions and ideas. #104
Based on the description of the PR, this looks perfect. I shall do some testing today and let you know.
I merged the PR and will push a new release to NuGet soon. Please feel free to reopen the issue if needed.
I want to allow users to pan within the node editor using the left mouse button.
Similarly to, e.g., Blender's tool selection that modifies what the left mouse button does, I wish to introduce three tools for operating the node editor:
I've found that the
EditorGestures
class is public; thus, it is possible to modify the default gestures to something custom.However, I couldn't figure out how to detach the selection from the left click.
I've tried the following:
Could you please point me in the right direction?
Given how these gestures are implemented, I'd assume it should be fine to modify them during the runtime. Is that correct?