I would like to know how I can remove a restriction area in execution.
I have used this code in the graphUpdateScene class:
protected override void OnDisable()
{
base.OnDisable();
if (AstarPath.active != null && Application.isPlaying)
{
var guo = new GraphUpdateObject(GetBounds());
AstarPath.active.UpdateGraphs(guo);
}
}
but I can’t remove the restriction area, there should be a graphUpdates.RemoveToQueue (ob) method