De-Panther / unity-webxr-export

Develop and export WebXR experiences using Unity WebGL
https://de-panther.github.io/unity-webxr-export/
Apache License 2.0
1.06k stars 111 forks source link

'SubsystemRegistration' does not exist in the current context #275

Closed lsqnet79 closed 1 year ago

lsqnet79 commented 1 year ago

Hi I got this missing SubsystemRegistration after I install from package Manager from https://openupm.com/packages/com.de-panther.webxr/

Works ok in Unity 2020 version with this Errors on Unity 2021 version

Library\PackageCache\com.de-panther.webxr@0.16.0-preview\Runtime\XRPlugin\WebXRSubsystem.cs(19,17): error CS0103: The name 'SubsystemRegistration' does not exist in the current context

De-Panther commented 1 year ago

There's a PR that would fix that. for now you can use an older version of com.unity.xr.management it started on 4.3.1 so a version before that

lsqnet79 commented 1 year ago

Yes I got it worker by lowering to 4.21 but now the inpit profiles unable to load err

De-Panther commented 1 year ago

That is not related to lowering the version. you have missing dependencies. Look at the WebXR Input Profiles repo for details https://github.com/De-Panther/webxr-input-profiles-loader

lsqnet79 commented 1 year ago

Yes you are right because your website didnt provide the correct link https://openupm.com/packages/com.de-panther.webxr/

De-Panther commented 1 year ago

What link it didn't provided?

lsqnet79 commented 1 year ago

com.atteneder

De-Panther commented 1 year ago

Why should it be referenced in unrelated package page? for the WebXR Export package there's no need for this scope, and the Input Profile Loader package is not mentioned there.

The scope is mentioned both at https://openupm.com/packages/com.de-panther.webxr-interactions/ and at https://openupm.com/packages/com.de-panther.webxr-input-profiles-loader/

Just make sure to go over instructions next time