Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Multiple cameras hit testing

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

  1. RegRedOxygen

    RegRedOxygen

    Joined:
    May 23, 2018
    Posts:
    2
    Hi,

    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