Jump to content

Error from Gaia when using Unity Assemblies


Dogtanian

Recommended Posts

My project build times are taking ages so I've tried to use Unity's assemblies to speed things up.

However, when I add an assembly to the Procedural Worlds folder I get the following error (and a load more like it).  Does anyone know how to fix this?

Quote

Assets\Procedural Worlds\Gaia\Scripts\API\GaiaAPI.cs(17,29): error CS0234: The type or namespace name 'Universal' does not exist in the namespace 'UnityEngine.Rendering' (are you missing an assembly reference?)

 

Link to comment
Share on other sites

It sounds like you are using URP, because the code line that throws the error would only be active if URP is being used. If that is the case, you would need to add references to "UnityEngine.Rendering.Universal" in the assembly definition file. Note though that you cannot just put a single assembly definition file at the root of the folder, since many script folders of Gaia contain editor folders that need to be compiled separately from the rest of the code.

Link to comment
Share on other sites

Hmm - I tried doing that, but "UnityEngine.Rendering.Universal" isn't showing up as a valid reference.

Does anyone know if URP supports assemblies at all?  Alternatively, are there any other ways the PW code can be pre-compiled so it doesn't need to be recompiled on every other change made elsewhere in the project?

Link to comment
Share on other sites

Ah - finally got it working.  The reference names were just misleading.

For anyone else who hits the same issue, the URP assembly definitions needed are "Unity.RenderPipelines.Core.Runtime" and "Unity.RenderPipelines.Universal.Runtime"

  • Like 1
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...