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.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question "Stream" Cameraview of Player 1 to RawImage that Player 2 sees

Discussion in 'Multiplayer' started by Jaschiru, Feb 1, 2022.

  1. Jaschiru


    Jan 3, 2021
    I'm working on a Project where one Player is in VR while the other Player has a UI infront of him with Buttons that change things for the VR Player.
    What I'm trying to archive is that the "UI Player" is able to see what the VR Player sees. I did this by adding a child camera to the VR Camera and sending the renderTexture from that child to a RawImage on my Canvas.
    I managed to get that set up but it only works localy.
    Whenever I try with a friend in Multiplayer (I'm using Pun) he either can't even see the RawImage or it is just a picture and not moving.
    I added a photon view to the VR Player and a Photon transform view to the Camera.
  2. toddkc


    Nov 20, 2016