Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Cannot inherit from UnityEngine.XR.WSA.SpatialMappingCollider anymore

Discussion in '2018.3 Beta' started by DaTruAndi, Oct 12, 2018.

  1. DaTruAndi


    Apr 14, 2017
    Hello all,

    admittedly I have not tried this piece of a code for a few releases (possibly over a year)... so apologies if the problem was introduced BEFORE 2018.3b already.

    I was inheriting from UnityEngine.XR.WSA.SpatialMappingCollider to override
    OnSurfaceDataReady to define my own CustomSpatialMappingCollider
    which I could do just fine before and seemed to be a great approach for what I wanted to do.

    Now trying to do that, I receive the error:
    'CustomSpatialMappingCollider' is missing the class attribute 'ExtensionOfNativeClass'!
    trying to add the attribute does not seem to work as said attribute is inaccessible (internal sealed class).

    Please advise - why don't you let me derive from SpatialMappingCollider anymore?
    When was that change introduced? Was that change documented anywhere?

    Any suggestions how to fix the issue?

    Kind regards,
    Nevey001 likes this.