Creates a NavigationMeshResource from a MeshDescriptor.
This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.
Asynchronously creates a NavigationMeshResource from a MeshDescriptor.
This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.
Creates a NavigationMeshResource through existing Navigation Mesh data.
This will not regenerate the Navigation Mesh. It will copy and save the input data to create a Navigation Mesh with this information.
get · iOS 27.0+
polygonIndices
TypeScript
get polygonIndices(): Array<Array<number>>
Swift declaration
var polygonIndices: [[Int]] { get }
The polygon indices of the generated Navigation Mesh. Polygons may have different numbers of vertices, so each entry in the list is a list of indices into the vertices array for that polygon.
Creates a NavigationMeshResource from triangle indices and vertices.
This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.
Asynchronously creates a NavigationMeshResource from triangle indices and vertices.
This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.
Creates a NavigationMeshResource from a MeshResource.
This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.
Asynchronously creates a NavigationMeshResource from a MeshResource.
This will take the input geometry and configuration and process it into a Navigation Mesh. The input and final geometry of the Navigation Mesh may not match, as it strives to simplify regions and match the configuration to determine what areas are walkable.
get · iOS 27.0+
areas
TypeScript
get areas(): Array<NavigationMeshResource_Area>
Swift declaration
var areas: [NavigationMeshResource.Area] { get }
The areas associated with each polygon in the generated Navigation Mesh.
get · iOS 27.0+
flags
TypeScript
get flags(): Array<Array<NavigationMeshResource_Flag>>
Swift declaration
var flags: [[NavigationMeshResource.Flag]] { get }
The flags associated with each polygon in the generated Navigation Mesh.
get · iOS 27.0+
layer
TypeScript
get layer(): (NavigationMeshResource_Layer) | null
Swift declaration
var layer: NavigationMeshResource.Layer? { get set }
The identification of this NavigationMeshResource, used when entities are searching for a specific NavigationMeshResource in a scene.
set · iOS 27.0+
layer
TypeScript
set layer(value: (NavigationMeshResource_Layer) | null)
Swift declaration
var layer: NavigationMeshResource.Layer? { get set }
The identification of this NavigationMeshResource, used when entities are searching for a specific NavigationMeshResource in a scene.
convenience init(named name: String, in bundle: Bundle? = nil) throws
Creates a NavigationMeshResource by importing an existing one from a Bundle.
The name is the path of the NavigationMeshResource within the bundle.
The bundle is the app package that contains the NavigationMeshResource. If nothing is specified, then the main bundle is used.
This loads an existing Navigation Mesh and will not process and create a new one.
Asynchronously creates a NavigationMeshResource by importing an existing one from a Bundle.
The name is the path of the NavigationMeshResource within the bundle.
The bundle is the app package that contains the NavigationMeshResource. If nothing is specified, then the main bundle is used.
This loads an existing Navigation Mesh and will not process and create a new one.