googlesamples / arcore-depth-lab

ARCore Depth Lab is a set of Depth API samples that provides assets using depth for advanced geometry-aware features in AR interaction and rendering. (UIST 2020)
https://augmentedperception.github.io/depthlab/
Apache License 2.0
762 stars 152 forks source link

NullReference to DepthSource #36

Closed mihirterna closed 3 years ago

mihirterna commented 3 years ago

Hi @ruofeidu ,

I tried installing master code with Demo carousel as well as seperate scenes, but everytime I am getting NullReference to Object DepthSource, I tried adding loggers in awake method of DepthSource but it never gets printed.

In your documentation, you mentioned at least one Depth Target should be present in scene in order for DepthSource to work, Can you please explain for which game object DepthTarget is attached by default (I tried searching for same but could find).

NullReferenceException stack trace:
Scene : Collider
Script : DepthMeshCollider.cs
Method : private void Update() 
Line # 252 ->
 else
        {
            if (DepthSource.Initialized)

Can you please check. Thanks and Regards, Mihir

mihirterna commented 3 years ago

I cloned the repo again, now it is working. No problem. Hence, closing this issue.