Disabling the cinemachine free look while using the joystick

Restricting Cinemachine FreeLook Camera with Joystick Controller

Setup

  • Unity with Cinemachine v3.1.2
  • FreeLook Camera
  • Joystick Pack for mobile input
  • Touch input for camera control

Issue

I need to implement a camera control system where:

  1. The FreeLook camera should not respond to input when touching the joystick area
  2. Camera should be controllable by touching anywhere else on the screen
  3. Joystick functionality should work normally for character movement

You can map the CM freelook to use any inputs you like - it’s just a matter of setting up the input actions the way you want them.