Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved SpatialMappingCollider could not be found

Discussion in 'VR' started by BookMak, Dec 28, 2018.

  1. BookMak

    BookMak

    Joined:
    Sep 2, 2015
    Posts:
    6
    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?
     
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Can you open the package manager and double check that you have the windows mr package installed?
     
  3. BookMak

    BookMak

    Joined:
    Sep 2, 2015
    Posts:
    6
    Got it thank you its working already
     
  4. Abdul_M

    Abdul_M

    Joined:
    Feb 17, 2018
    Posts:
    11
    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.
     
  5. unity_20hy8tc1LSZG4Q

    unity_20hy8tc1LSZG4Q

    Joined:
    May 13, 2019
    Posts:
    3
    This doesn't fix it for me. Are you supposed to select a certain Virtual Reality SDK from the dropdown box?
     
  6. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    400
    You should have Windows Mixed Reality in the SDK list in your build settings > XR Settings. Is your list blank or containing something else?
     
  7. Sneha_Pallewar

    Sneha_Pallewar

    Joined:
    Feb 18, 2019
    Posts:
    7
    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?
     
  8. plaube

    plaube

    Joined:
    Oct 23, 2020
    Posts:
    1
    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 - https://docs.unity3d.com/2019.2/Documentation/Manual/SpatialMappingCollider.html.

    I found a XR interaction toolkit (https://docs.unity3d.com/Packages/c...olkit@1.0/manual/index.html#technical-details) 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.(https://docs.unity3d.com/Packages/com.unity.xr.windowsmr@4.2/manual/index.html)

    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?
     
  9. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    400
    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: https://docs.unity3d.com/ScriptReference/XR.XRMeshSubsystem.GenerateMeshAsync.html

    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!
     
    plaube likes this.
  10. Sneha_Pallewar

    Sneha_Pallewar

    Joined:
    Feb 18, 2019
    Posts:
    7
    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
     
  11. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    400
    Do you have the XR Plugin Management installed as well? https://docs.unity3d.com/Packages/com.unity.xr.management@3.2/manual/index.html
     
  12. Sneha_Pallewar

    Sneha_Pallewar

    Joined:
    Feb 18, 2019
    Posts:
    7
    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
     
  13. dimatsiak

    dimatsiak

    Joined:
    Jan 29, 2020
    Posts:
    4
    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!"
     
  14. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    400
    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?
     
  15. giantkilleroverunity3d

    giantkilleroverunity3d

    Joined:
    Feb 28, 2014
    Posts:
    370
    What a complete and utterly effin joke of systems management.
    Who emptied the clown car?
    I have another crashed project now and this S*** 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?
     
    Last edited: Jan 6, 2021
    trullilulli likes this.
  16. shimvivek

    shimvivek

    Joined:
    Nov 14, 2022
    Posts:
    1
    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??