Search Unity

PlayerSettings.VRDaydream

Discussion in 'Daydream' started by noamiko, Apr 4, 2017.

  1. noamiko

    noamiko

    Joined:
    Jun 2, 2015
    Posts:
    3
    on GVR-13 the fields:
    PlayerSettings.VRDaydream.daydreamIcon
    PlayerSettings.VRDaydream.daydreamIconBackground
    where available

    seems like those fields throw an error on editor scripts run time on Unity5.6.0f3

    will those fields or an equivalent available or will be available in the future ?
     
  2. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    I can reference those fields on 5.6.0f3 in Editor scripts.

    Just to double check:
    • Make sure you put the script in the Editor folder.
    • Make sure you add `using UnityEditor;` to your script.
     
  3. noamiko

    noamiko

    Joined:
    Jun 2, 2015
    Posts:
    3

    thank you for your reply,
    can you please try my attached example?
     

    Attached Files:

  4. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    Reproduced. Found the solution. We'll get it in one of the next patch releases.

    Sorry about that!
     
  5. noamiko

    noamiko

    Joined:
    Jun 2, 2015
    Posts:
    3
    great !

    thank you !!!
     
  6. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    This is fixed in 5.6.0p1 which has a tentative release date of April 12 2017.