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.01k stars 106 forks source link

WebXRController class can't be referenced to handle input #293

Closed hugodigio closed 11 months ago

hugodigio commented 11 months ago

Hi, I'm trying to use webXR input in my script to handle UI interaction, but I can't make reference to a WebXRController script caused by assembly definition (I guess), we can't use WebXR namespace in any script (using WebXR; for example don't work)

For example, I tried to Import in my project @De-Panther 's ControllerInputModule.cs from his WebXR-Unity-Samples repository but have some reference problems. ControllerInputModule.cs(8,7): error CS0246: The type or namespace name 'WebXR' could not be found (are you missing a using directive or an assembly reference?) ControllerInputModule.cs(12,10): error CS0246: The type or namespace name 'WebXRController' could not be found (are you missing a using directive or an assembly reference?) screenshot of errors in visual code

I feel we can't handle input anymore for now.

De-Panther commented 11 months ago

Just use assembly definition and assembly reference as the error suggest