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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Set Target Eye at RunTime

Discussion in 'AR/VR (XR) Discussion' started by dec-dev0, Dec 23, 2015.

  1. dec-dev0

    dec-dev0

    Joined:
    Mar 21, 2014
    Posts:
    14
    Hi,

    How to set the camera Target Eye property at runtime ?

    Because I'm creating some cameras by code at runtime that must not be displayed on the Oculus Rift, and I need to set them the Target Eye to "None (Main Display)".

    Yann.

    sshot-174.png
     
  2. CoredumpLab

    CoredumpLab

    Joined:
    Mar 11, 2014
    Posts:
    14
    Hi,

    It could be stupid to say, but why don't you use camera prefab with targeted none settings ?

    BR
    Core
     
  3. motorsep

    motorsep

    Joined:
    Dec 23, 2010
    Posts:
    25
    How about assigning geometry / skybox per eye on runtime?