To all Magic Mouse users,
I wanted to share a solution I found for panning in the Unity editor on MacOS using a Magic Mouse. As many of you may know, panning typically requires a middle mouse button, which the Magic Mouse doesn’t have. However, I’ve written a C# editor script that, in combination with the MiddleClick open-source app, allows for seamless, 100% native-like panning in Unity.
What You Need:
- A Magic Mouse
- The MiddleClick app by Arthur Ginzburg
- My Unity Editor script
Steps:
- Download and install the MiddleClick app from it’s github page: Releases · artginzburg/MiddleClick-Sonoma · GitHub
- Start the MiddleClick app to allow middle mouse button emulation on your Magic Mouse (three finger press, or you can switch to tap mode in it’s settings)
- Follow the instructions on my GitHub page: GitHub - danieltsoftware/UnityPanningMagicMouse: An editor script to allow for panning with a Magic Mouse in Unity while running the Middle Click app.