API reference
API reference
Select your platform
No SDKs available
No versions available

NavMeshSurface Class

Extends MonoBehaviour, ISurface

Properties

string AreaName[Get]
float SnapDistance[Get]
float VoxelSize[Get]
bool CalculateHitNormals[Get]
A transform for the surface.

Protected Functions

virtual void Start ( )

Member Functions

Find nearest point to surface.
Parameters
ray
Point to check
hit
The returned hit data
maxDistance
If greater than zero, maximum distance of check
Returns
true if nearest point was found
Raycast to the surface with an optional maximum distance value.
Parameters
ray
The ray to cast
hit
The returned hit data
maxDistance
If greater than zero, maximum distance of raycast
Returns
true if surface was hit
Did you find this page helpful?
Thumbs up icon
Thumbs down icon