Jump to content

How to restart Gaia runtime after swapping out the main camera?

Go to solution Solved by Bryan,

Recommended Posts

I'm using a tool that bundles the main camera into the player stack, but I don't instantiate that prefab until after all the other scene initialization is done, including firing up the Gaia runtime.  As a result, every time the weather is about to change, I get a whole bunch (~40) of errors logged.  They're all like:

Set post fx to weather had a issue Object reference not set to an instance of an object This came from   at Gaia.ProceduralWorldsGlobalWeather.SetFXToWeather (System.Boolean enabling, Gaia.WeatherSettings weatherSettings) [0x0002c] in ..../ProceduralWorldsGlobalWeather.cs:5717

It looks like Gaia's postprocessing stuff nulls out instead of adjusting to the camera replacement.

Is there a relatively easy way to restart the runtime gracefully instead of trying to hack a handful of public camera variables?  I don't need to preserve state through it; a full reset to scene start is fine.

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...