文档

Unity Engine

Unity Engine

CreateSettings()

Creates and returns a new entry of NavMesh build settings available for runtime NavMesh building.
阅读时间1 分钟最后更新于 25 天前

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.
The NavMeshBuildSettings.agentTypeID will be positive and unique for the created settings.
Additional Resources: NavMeshBuildSettings