[Script Release MacOS] Panning in Unity with a Magic Mouse and Middle Mouse Click emulation

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: