Search Unity

From C# code turn mouse movement off (camera rotation) when mouse button is held down

Discussion in 'Cinemachine' started by guilesmiles, Jun 27, 2019.

  1. guilesmiles

    guilesmiles

    Joined:
    Jun 27, 2019
    Posts:
    1
    I would like to have the Free Look camera respond to mouse movement (camera rotation) only if the left mouse button is held down. How would I go about that from code.
    Edit: Solved in another thread, please remove
     
    Last edited: Jun 27, 2019
    Gregoryl likes this.