Jump to content

Build Error on Switch - WorldSelectionUI.cs(40,9): error CS0103


Recommended Posts

Yo

I'm trying to build for Nintendo Switch but get this error:

Assets\Procedural Worlds\Frameworks\PWAddressables1\DemoClient\Scripts\WorldSelectionUI.cs(40,9): error CS0103: The name 'Caching' does not exist in the current context - Any ideas?

image.png.955f914934b2e8141d34c9801a7b48ab.png

 

Link to comment
Share on other sites

Hi @Ernbot, this script is from a demo setup for using addressables / asset bundles with Gaia - from the error message it sounds like Addressables (or at least the "Caching" class) are not supported for the switch platform.

Do you plan to use addressables / asset bundles in your project? If not, you should be able to comment out the problematic line 40 with two leading slashes

// Caching.GetAllCachePaths(cachePaths);

and then it should fix that error on build.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...