Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Multiple cameras hit testing

Discussion in 'Project Tiny' started by RegRedOxygen, Feb 26, 2019.

  1. RegRedOxygen


    May 23, 2018

    I've encountered a problem regarding raycast hit testing using multiple cameras in Unity Tiny. My setup involves multiple players swiping objects based on their independent views (its a multiplayer game). To ensure players only see their screens and not those of other players I disable all other cameras that aren't assigned to them. The problem however is that while the inputs are tracked no hit testing occurs on the objects except for a single camera, even though the raycast hit test is fed the camera of the player that is assigned to them.

    Any assistance will be appreciated.
    Kinds Regards