[OdinSerialize] field manual setuped value reset to null in Hololens 2 Emulator

Issue #800 new
Андрей Фескович created an issue

Operating system: Windows 10. 21H1
Unity: 2020.3.12f1
editor only mode isn’t enabled

I got an error: “Object reference not set to an instance of an object” when i tried to use value of field:

[OdinSerialize]
List<UnityEngine.XR.InteractionSubsystems.GestureState> gestureStates;

The value of field was setup through Unity inspector. That way:

Execution environment was Hololens 2 emulator. Firsly, i builded an application in Unity:

Than i launched an application in visual studio Debug x64 mode using Hololens 2 emulator as a target platform:

I got this error in try/catch construction trying use gestureStates field (i outputed error text to Unity.UI.Text attached to canvas in front of Camera). Than, when i setup gestureStates field through hardcode, the error has gone and whole behaviour of my app became correct.

In Unity editor that error isn't occured

Can you fix that problem. Why does it happend?

Comments (0)

  1. Log in to comment