Search Unity

0.0.7 Released

Discussion in 'EditorXR' started by amirebrahimi_unity, Jun 5, 2017.

  1. amirebrahimi_unity

    amirebrahimi_unity

    Joined:
    Aug 12, 2015
    Posts:
    400
  2. rgjones

    rgjones

    Joined:
    Jan 23, 2017
    Posts:
    19
    Loaded up latest Editor VR and .007 download in fresh project - get following error


    Code (CSharp):
    1. GetBool is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'EditorVR' on game object 'EditorVR'.
    2. See "Script Serialization" page in the Unity Manual for further details.
    3. UnityEditor.Experimental.EditorVR.Core.EditorVR:.cctor()
    4.  
    5. UnityException: GetBool is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'EditorVR' on game object 'EditorVR'.
    6. See "Script Serialization" page in the Unity Manual for further details.
    7. UnityEditor.Experimental.EditorVR.Core.EditorVR.get_showGameObjects () (at Assets/EditorVR/Scripts/Core/EditorVR.cs:44)
    8. UnityEditor.Experimental.EditorVR.Core.EditorVR.get_defaultHideFlags () (at Assets/EditorVR/Scripts/Core/EditorVR.cs:39)
    9. UnityEditor.Experimental.EditorVR.Core.EditorVR..cctor () (at Assets/EditorVR/Scripts/Core/EditorVR.cs:440)
    10. Rethrow as TypeInitializationException: An exception was thrown by the type initializer for UnityEditor.Experimental.EditorVR.Core.EditorVR
    11.  
    12. UnityEngine.UnityException: GetBool is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour 'EditorVR' on game object 'EditorVR'.
    13. See "Script Serialization" page in the Unity Manual for further details.
    14.   at (wrapper managed-to-native) UnityEditor.EditorPrefs:GetBool (string,bool)
    15.   at UnityEditor.Experimental.EditorVR.Core.EditorVR.get_showGameObjects () [0x00007] in C:\src\Unity\56\EDVR\Assets\EditorVR\Scripts\Core\EditorVR.cs:44
    16.   at UnityEditor.Experimental.EditorVR.Core.EditorVR.get_defaultHideFlags () [0x00001] in C:\src\Unity\56\EDVR\Assets\EditorVR\Scripts\Core\EditorVR.cs:39
    17.   at UnityEditor.Experimental.EditorVR.Core.EditorVR..cctor () [0x00001] in C:\src\Unity\56\EDVR\Assets\EditorVR\Scripts\Core\EditorVR.cs:440
    18. UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
    19.  
     
    Last edited: Jun 23, 2017
  3. unity_andrewm

    unity_andrewm

    Unity Technologies

    Joined:
    Jun 25, 2015
    Posts:
    73
    Trying to set up a good repro case for this. Are you getting this error on each startup - or once per fresh project?
     
  4. rgjones

    rgjones

    Joined:
    Jan 23, 2017
    Posts:
    19
    The lastest development build is working for me now.