Skip to main content
Version: 3.7

class LightshipNavMeshAgentPathRenderer

(Niantic.Lightship.AR.NavigationMesh.LightshipNavMeshAgentPathRenderer)

Overview

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

	class LightshipNavMeshAgentPathRenderer: MonoBehaviour {
public:
// fields

LightshipNavMeshAgent _agent;
Material _material;
};

Detailed Documentation

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

Fields

_agent

LightshipNavMeshAgent _agent

The LightshipNavMeshAgent 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.