Skip to main content
Version: 3.0

class NavMeshAgentPathRenderer

(Niantic.Lightship.AR.NavigationMesh.NavMeshAgentPathRenderer)

Overview

NavMeshAgentPathRenderer is a debug renderer to show you the path a NavMeshAgent is moving along while navigating the environment. You add it to the NavMeshAgent GameObject in your scene and it will draw that agent's current path.

	class NavMeshAgentPathRenderer: MonoBehaviour {
public:
// fields

NavMeshAgent _agent;
Material _material;
};

Detailed Documentation

NavMeshAgentPathRenderer is a debug renderer to show you the path a NavMeshAgent is moving along while navigating the environment. You add it to the NavMeshAgent GameObject in your scene and it will draw that agent's current path.

Fields

_agent

NavMeshAgent _agent

The NavMeshAgent that you want to render the path for.

_material

Material _material

The Material used to render the path. This Material will be applied on a LineRenderer.