5.4 Windows Build errors

Upgraded A* in my project to 5.4 and I get these errors when trying to build:

Assets\External\AstarPathfindingProject\Core\Collections\Span.cs(389,49): error CS0117: 'NativeArrayUnsafeUtility' does not contain a definition for 'GetAtomicSafetyHandle'

Assets\External\AstarPathfindingProject\Core\Collections\Span.cs(391,5): error CS0103: The name 'AtomicSafetyHandle' does not exist in the current context

Using Astar 5.4.0, Unity 6 (6000.1.0f1), Windows, HDRP.

1 Like

Same issue for me.
Astar 5.4.0, Unity6 (6000.1.7f1), Linux Server (Mono), URP.

1 Like

That’s strange.
According to the unity documentation, the NativeArrayUnsafeUtility.GetAtomicSafetyHandle method should exist since unity 2018.1…

Does this happen in the unity editor too, or only when trying to build it?

Only when building.

I found the issue. I’ll include a fix in the next update.

2 Likes

New beta version uploaded.

2 Likes