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

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

    Unity Technologies

    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?