Any fuction to see if position is on grid?

Hello,

I wonder if there is some built in way to check if a position is on unblocked navigatable position of grid? Sort of like Unity Nav mesh Sample function?

Thanks,

Hi!
Do you mean that?
https://arongranberg.com/astar/documentation/4_0_8_e597295/accessing-data.php

What I do is also have a standard Unity NavMesh alongside with A* and also NavMeshAgent and collider on my unit
(Yes I know there is RVO local avoidance but it does not fit for my project and also NavMeshAgent helps to handle the collisions)
And then I check if unit can move to the target point like this

var agent = unit.GetComponent<NavMeshAgent>();
if (agent != null) {
  Vector3 targetPosition = Input.mousePosition;
  NavMeshPath path = new NavMeshPath();
  agent.CalculatePath(targetPosition, path);
  if (path.status == NavMeshPathStatus.PathInvalid) {
    return;
  }
}