Small mistake in the docs

just wanted to implemnt (() => {
// Safe to modify graph data here

than i got this from the compiler:

Static member `AstarPath.RegisterSafeUpdate(System.Action)’ cannot be accessed with an instance reference, qualify it with a type name instead

it is easly solved by just getting rid of the object:

AstarPath.RegisterSafeUpdate (() => {
// Safe to modify graph data here

here is the link to the mistake in the docs.

1 Like


Thanks for reporting that typo!
The fix will be included in the next update.