Documentation

Unity Engine

Unity Engine

CreateSettings()

Creates and returns a new entry of NavMesh build settings available for runtime NavMesh building.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public static NavMeshBuildSettings CreateSettings()

Returns

Type

Description

NavMeshBuildSettingsThe created settings.

Remarks

This is useful for creating and storing settings to use for building NavMeshes for different sized characters.
Additional Resources: NavMeshBuildSettings.
The NavMeshBuildSettings.agentTypeID will be positive and unique for the created settings.