SpatialMappingCollider could not be found

Hi all,

I had just updated to the latest Unity 2018.3.0f2, and this error pops up, when I opened my project
The type or namespace name ‘SpatialMappingCollider’ could not be found

Is there any functions that replaces this for the new version?

Can you open the package manager and double check that you have the windows mr package installed?

Got it thank you its working already

This is a “bug” in later versions of Unity 2018 and above when importing projects with an older version where those 2 classes are not automatically imported. Just go to XR Settings under Player settings and uncheck/check “Virtual Reality Supported”. That will re-download the missing classes.

4 Likes

This doesn’t fix it for me. Are you supposed to select a certain Virtual Reality SDK from the dropdown box?

You should have Windows Mixed Reality in the SDK list in your build settings > XR Settings. Is your list blank or containing something else?

Hi @Unity_Wesley ,

I had just updated my project to the latest Unity 2020.1.10f1, and this error pops up, when I opened my project
The type or namespace name ‘SpatialMappingCollider’ could not be found

Is there any functions that replaces this for the latest unity 2020 version?

We are trying to use the SpatialMappingCollider but i cannot find a way to include it in our current Hololens project using Unity 2019.4)
The last documentation i can find to this needed feature is of the Unity Version 2019.2 - Unity - Manual: Spatial Mapping Collider.

I found a XR interaction toolkit (XR Interaction Toolkit | XR Interaction Toolkit | 1.0.0-pre.8) which i cannot download in unity via the package manager, but seems to have parts of such a feature.
This plugin references to the ARFoundation which references the Windows XR Plugin (yay i found something which looks like it belongs to the hololens) in version 5.0.

The latest version of Windows XR Plugin i can find is 4.2.(About XR SDK for Windows MR | Windows XR Plugin | 4.2.1)

I am completely lost in this documentation chaos. Has anyone some luck finding this feature somewhere or is everyone using the old Windows Microsoft Reality Plugin in Unity? Any experiences / guesses? Should we get back to 2018.4 and use the old stuff?

Hello there,

I see you’re looking for the SpatialMappingCollider component in 2020.x+ versions of Unity? If so, I apologize for confusion around this but in 2019.4 I presume you are still using the Legacy XR implementation. In XR SDK we have a Meshing Subsystem which handles all the mesh tech stack and that info can be found here: Unity - Scripting API: XR.XRMeshSubsystem.GenerateMeshAsync

That link will take you closest to the reference of the meshCollider parameter which can be used but you can explore the other pages for additional info and usages that may apply to your use case. I hope that helps!

1 Like

I have upgraded my unity 2017 HoloLens project to unity 2020.1 but when I open the project I m getting this error “The type or namespace name ‘SpatialMappingRenderer’ could not be found (are you missing a using directive or an assembly reference”

Please help me how to resolve this in unity 2020.1 and also I am unable to see ‘windows mr package’ in package manager

Do you have the XR Plugin Management installed as well? https://docs.unity3d.com/Packages/com.unity.xr.management@3.2/manual/index.html

Hi @JasonCostanza
Thanks for your response. I have already installed XR Plugin management but today I upgraded the XR Plugin Management version to 3.2.17(verified version) when upgraded to this version I am getting this following error and also unable to see XR Plugin tab

Library\PackageCache\com.unity.xr.management@3.2.17\Editor\XRGeneralBuildProcessor.cs(39,52): error CS0117: ‘BuildPipeline’ does not contain a definition for ‘GetBuildTargetName’

Could you please help me to resolve this I am using unity 2020.1.10

Hello,

I am also trying to run the Hololens project and I found some known errors such as the guys before. I re-download the mrtk but SpatialMappingCollider doesn’t find it in the project. I am using Unity 2018.3.14.

Do you have any suggestions?

“The referenced script on this Behaviour (Game Object ‘Spatial Mapping’) is missing!”

Which Windows Mixed Reality package are you using in combination with the Management package? Make sure both are on their latest versions

If you’re on 2018 version, the Spatial Mapping Collider is a component you can put onto a gameobject and is found inside the WMR package. What packages are installed to your project?

What a complete and utterly effin joke of systems management.
Who emptied the clown car?
I have another crashed project now and this shit is getting friggin old.
Do you hear me? Friggin old!
A very sad day for developers. Unity does not have the least concern for stability.
The environment is left up to crash and burn puppies to lick their wounds back to health.
Well I never see quantified solutions or results. We all stumble into some mysterious way back b.s.
And do you know why?
Because when a solution is found by a dev they dont even bother posting because they are spent/burned out to get the fix. Oh did you back up? What good is that if the project has to move forward to meet the technology and with the updates comes the crash.
Since 2014 this has been a constant stream of people or projects getting waylaid by instability.
Oh can you send in your project to be evaluated? Has any one ever told management that they have to submit theirr Intellectual property some where on the planet? Oh that goes over real well with investors doesnt it?

I fixed my Vr project by removing all the VR assets and packages. Yep. I have an Oculus Quest project with no distribution platform destination. Whats this called ER, empty reality?

1 Like

Hey guys,
This issue is marked as solved but I dont really see a working solution in this thread!
I’m stumped with the same error that OP had.
I am using 2019.4.40f1 version of unity and latest MRTK version.

What solves this error??