Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.98k stars 1.11k forks source link

These namespaces wont register and I have no clue why, please help. #1044

Closed Connorpate closed 1 year ago

Connorpate commented 1 year ago

I am trying to run a sample scene from the ar foundation samples but these error codes are being thrown and I haven't been able to find anything on the internet that can point me to a solution. If you know why or how to fix this problem it would help a ton. Thank you. Unity error codes

Error code

andyb-unity commented 1 year ago

Have you modified the sample project at all? It looks to me like you may have cloned the sample project from the main branch and then changed the AR Foundation version to 4.2?

XRDepthSubsystem and associated classes were renamed to XRPointCloudSubsytem in 5.0: https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.0/manual/version-history/migration-guide-5-x.html#xrdepthsubsystem-is-now-xrpointcloudsubsystem

If you are looking for an AR Foundation 4.2-compatible sample project, check out the 4.2 branch of this repo. Or if this doesn't fix your issue, please provide more information. Happy new year!

andyb-unity commented 1 year ago

Closing this issue as asked and answered. Feel free to re-open if you have further questions.