AutoSave: Navmesh Agent - set destination

Discussion and help for Easy Save 3
Post Reply
User avatar
AdamStepinski
Posts: 11
Joined: Wed May 05, 2021 8:44 am

AutoSave: Navmesh Agent - set destination

Post by AdamStepinski »

I try to save Navmesh Agent's destination using AutoSave

When I load an AutoSave file, I get error "SetDestination" can only be called on an active agent that has been placed on a NavMesh, presumably because navmesh agent isn't active yet

Can you help me?

PS. Thanks for all your work you do
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: AutoSave: Navmesh Agent - set destination

Post by Joel »

Hi there, and thanks for getting in contact.

As this is an issue with how NavMeshes work rather than serialization, and isn't a type that we explicitly support, I recommend getting in touch with Unity regarding this. They should be able to provide more information on why this error is thrown and how to avoid it.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
User avatar
AdamStepinski
Posts: 11
Joined: Wed May 05, 2021 8:44 am

Re: AutoSave: Navmesh Agent - set destination

Post by AdamStepinski »

OK got it working

the solution was to load scene with navmesh first, then to load (using AutoSave) navmeshAgents after one frame

apparently this error was on my side

thanks for support
Post Reply