I’m trying to create a package that adds functionality to Google Cardboard SDK (aka Google VR) which is found at GitHub - googlevr/cardboard-xr-plugin: Google Cardboard XR Plugin for Unity
I’m doing this via 'install from disk…", it installs correctly, assembly definition files are in the Runtime folder, but I get an error. Where the code refers to Google.XR.Cardboard.Api.IsTriggerPressed (and obviously any other calls to the API) Unity complains with:
error CS0103: The name ‘Google’ does not exist in the current context
Note that the Google cardboard xr plugin is correctly installed and all this worked fine when it was in the Assets folder before I tried to convert to a Package.
Here’s the package.json (I had to change the name and display name):
{
"name": "net.xyz.cardboardinteraction",
"displayName": "CardboardInteract",
"version": "1.0.0",
"unity": "2019.4",
"description": "Provides a directional, gaze style pointer ......",
"keywords": [
"google",
"cardboard",
"vr",
"xr",
"reality"
],
"dependencies": {
"com.google.xr.cardboard" : "https://github.com/googlevr/cardboard-xr-plugin.git"
},
"type": "tool"
}
In dependencies I also tried
"com.google.xr.cardboard" : "1.8.0"
but the result is the same.
What am I missing?
Thanks all
