Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question OnMouseEnter not doing anything when 2nd cam is present

Discussion in 'Input System' started by NimbleSprite, May 10, 2024.

  1. NimbleSprite


    Nov 3, 2017
    Thanks for any help with this everyone! :)

    OnMouseEnter() straight up does nothing for some reason when I have this camera in the scene. I have my regular camera which moves around, and I have a 2nd orthogonal camera for something else (rendering particle systems).


    Already confirmed that the raycast is hitting the right objects, and also that there are no other colliders that are being hit. I can enable / disable this cam during playmode and all my scripts that use OnMouseEnter will stop / start working.

    Any clues why having this 2nd cam prevents OnMouseEnter()?
    Last edited: May 10, 2024