Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Null values for UI

Discussion in 'EditorXR' started by insominx, Jan 30, 2019.

  1. insominx

    insominx

    Joined:
    Jan 23, 2012
    Posts:
    32
    With a fresh installation on Unity 2017.4 + EditorXR + Oculus Integration + TextMesh Pro I am unable to get this to run correctly due to issues with the UI. After the Oculus touch controller get recognized, I get the following:


    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Experimental.EditorVR.UI.GradientButton.Awake () (at Assets/EditorXR/Scripts/UI/GradientButton.cs:258)
    UnityEditor.Experimental.EditorVR.Input.OVRTouchInputToEvents:Update()​

    ...

    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Experimental.EditorVR.Menus.MainMenuSelectable.SetData (System.String name, System.String description) (at Assets/EditorXR/Menus/MainMenu/Scripts/MainMenuSelectable.cs:56)
    UnityEditor.Experimental.EditorVR.Menus.MainMenuUI.CreateFaceButton (UnityEditor.Experimental.EditorVR.Menus.MainMenuUI+ButtonData buttonData) (at Assets/EditorXR/Menus/MainMenu/Scripts/MainMenuUI.cs:227)
    UnityEditor.Experimental.EditorVR.Menus.MainMenu.CreateFaceButton (UnityEditor.Experimental.EditorVR.Menus.MainMenuUI+ButtonData buttonData, UnityEditor.Experimental.EditorVR.ITooltip tooltip, System.Action buttonClickCallback) (at Assets/EditorXR/Menus/MainMenu/MainMenu.cs:337)
    UnityEditor.Experimental.EditorVR.Menus.MainMenu.CreateFaceButtons () (at Assets/EditorXR/Menus/MainMenu/MainMenu.cs:260)
    UnityEditor.Experimental.EditorVR.Menus.MainMenu.Start () (at Assets/EditorXR/Menus/MainMenu/MainMenu.cs:142)

    ...​

    NullReferenceException: Object reference not set to an instance of an object
    Ring.Update () (at Assets/EditorXR/Tools/LocomotionTool/Scripts/Ring.cs:86)
    I'm not sure how to debug this. What am I missing?
     
  2. amirebrahimi_unity

    amirebrahimi_unity

    Joined:
    Aug 12, 2015
    Posts:
    400
    Did you use TextMesh Pro from the Asset Store or the new packages version from the Unity Package Manager?