NullReferenceException: Object reference not set to an instance of an object
DepthFirstScheduler.Schedulable`1[T].OnExecute (DepthFirstScheduler.IScheduler scheduler, System.Action`1[T] pred) (at Assets/UniGLTF/DepthFirstScheduler/Schedulable.cs:155)
UniGLTF.ImporterContext.LoadAsync (System.Boolean show) (at Assets/UniGLTF/Core/Scripts/IO/ImporterContext.cs:469)
UniGLTF.ImporterContext.LoadAsync (System.Action`1[T] onLoaded, System.Action`1[T] onError, System.Boolean show) (at Assets/UniGLTF/Core/Scripts/IO/ImporterContext.cs:452)
I have traced this back to this line in Schedulable.cs
Parent.AddChild(schedulable);
and it seems that Parent is null. I'm not quite sure if this is from me using the LoadAsync incorrectly without proper setup or there is something I'm missing? Thanks in advance for the advise.
I download the new release v1.22 to check out the new LoadAsync. Then I tried using the new Async load as follows
And got some error like this
I have traced this back to this line in Schedulable.cs
Parent.AddChild(schedulable);
and it seems that Parent is null. I'm not quite sure if this is from me using the LoadAsync incorrectly without proper setup or there is something I'm missing? Thanks in advance for the advise.