Jump to content

About events of loader


yangjianing

Recommended Posts

I want to know if there is are events to call when the scene start to load and when they are all loaded by gaia pro and sectr.

I need to store my game data before unloading and loading chunks and apply data after all chunks are loaded.

Link to comment
Share on other sites

And second, I also want to know how many sectr occluders I can use. If I added 1000 occluders to scenes, will it influence the performance?

Link to comment
Share on other sites

  • 3 weeks later...

hello, perhaps I can help you a bit:

In terrian loader you can know if the scene that is in the player position has been loaded. Besides, you can know the slider value of the present loaded scene. This i helpful if you ask when the slider reaches 1 then you can run the playerPrefs.

best regards

Link to comment
Share on other sites

27 minutes ago, Gustavo said:

hello, perhaps I can help you a bit:

In terrian loader you can know if the scene that is in the player position has been loaded. Besides, you can know the slider value of the present loaded scene. This i helpful if you ask when the slider reaches 1 then you can run the playerPrefs.

best regards

Thanks, I can use terrian loader of gaia to load terrain, but for sectr, the only value I can get is Loaded or not. My elements on scene are streamed by sectr. So when sectr unload a scene, those objects will be deleted, and before that I need to save their data like position to avoid losing data.

Or maybe I could add some method to OnDestory(), when enemies were destoryed but not dead, it means they were unloaded instead of being killed. So I could sent their data to my save system.

But it is just not that convinent to use a for loop to save them, hope developer here could fix the problem.

Link to comment
Share on other sites

Yeah you would need to introduce some logic to save the information regarding the npc/enemies. 
I think back when I developed I used a combination of the Nav Mesh Components from git hub which is made by Unity. 
Then I had to make logic on the enemies themselves to save that information. 
https://github.com/Unity-Technologies/NavMeshComponents
Hopefully this helps 

 

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