Search Unity

Changing XRSettings is not allowed in play mode

Discussion in 'AR/VR (XR) Discussion' started by stevenwanhk, Jul 25, 2018.

  1. stevenwanhk

    stevenwanhk

    Joined:
    Jul 20, 2016
    Posts:
    113
    I have to turn off VR support in runtime for some reasons. I suppose
    XRSettings.enabled = false
    is working but it is not the case. When I check Player Setting in the Editor it shows "Changing XRSettings is not allowed in play mode".

    I am using 2018.2.0f2. Thanks.
     
  2. dwimlk

    dwimlk

    Joined:
    Nov 19, 2018
    Posts:
    2
    bro you have fixed this isue ?
     
  3. stevenwanhk

    stevenwanhk

    Joined:
    Jul 20, 2016
    Posts:
    113
    No, it still does not work
     
  4. farzadjazi

    farzadjazi

    Joined:
    Nov 22, 2018
    Posts:
    1
    Hey guys,
    Make sure your unity is not running in play mode, It means you probably have pushed the play button ( like Run button in visual studio or Xcode ) just stop it.
     
  5. stevenwanhk

    stevenwanhk

    Joined:
    Jul 20, 2016
    Posts:
    113
    as I have mentioned