I have a pathfinding script that uses the burst compiler and job system. However, I do not want to implement ECS and want to use regular game objects.
Inside my execute method
public void Execute()
{
// Calculate the path and save it as a native array path
NativeList<int2> path = CalculatePath(pathNodeArray, endNode);
}
I want to make a game object move using this path. What's the best way to get the value of this path after scheduling the job and calling
JobHandle.Complete()