Home Forums Unity SDK ReflectionTypeLoadException

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18136
    cicomaniac
    Participant

    Hi guys,

    I am getting this error, when trying to inspect the TobiiXR Initializer in the editor.

    ReflectionTypeLoadException: Exception of type ‘System.Reflection.ReflectionTypeLoadException’ was thrown.
    System.Reflection.Assembly.GetTypes () (at <437ba245d8404784b9fbab9b439ac908>:0)
    Tobii.XR.Internal.AssemblyUtils+<>c.<EyetrackingProviderTypes>b__1_0 (System.Reflection.Assembly s) (at Assets/TobiiXR/API/Internal/AssemblyUtils.cs:21)
    System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
    Tobii.XR.Internal.EditorUtils.EyetrackingProviderTypes (UnityEditor.BuildTargetGroup buildTarget) (at Assets/TobiiXR/API/Internal/Editor/EditorUtils.cs:53)
    Tobii.XR.Internal.EditorUtils.GetAvailableProviders (UnityEditor.BuildTargetGroup target) (at Assets/TobiiXR/API/Internal/Editor/EditorUtils.cs:44)
    Tobii.XR.Internal.TobiiXR_SettingsDrawer.Init (UnityEditor.SerializedProperty property) (at Assets/TobiiXR/API/Internal/Editor/TobiiXR_SettingsDrawer.cs:33)
    Tobii.XR.Internal.TobiiXR_SettingsDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Assets/TobiiXR/API/Internal/Editor/TobiiXR_SettingsDrawer.cs:100)
    UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <3e481e8f36eb4d4c8d94b9ba6b2be438>:0)
    UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <3e481e8f36eb4d4c8d94b9ba6b2be438>:0)
    UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <3e481e8f36eb4d4c8d94b9ba6b2be438>:0)
    UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <3e481e8f36eb4d4c8d94b9ba6b2be438>:0)
    UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <3e481e8f36eb4d4c8d94b9ba6b2be438>:0)
    UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at <3e481e8f36eb4d4c8d94b9ba6b2be438>:0)

    #18149
    Grant [Tobii]
    Keymaster

    Hi @cicomaniac, sorry to hear about your issues. We were unable to identify the source of this error but it could be because one of the eye tracking providers or assembly definitions have been modified. One solution you can try is removing and then re-adding the TobiiXR Settings.

    Please try this out and let us know how you get on.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.