Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NavMeshBuildSource.component

public Component component;

Description

Points to the owning component - if available, otherwise null.

When build sources are obtained using NavMeshBuilder.CollectSources, this value typically refers to a mesh or collider component - however for shared meshes it will be null. See Also: MeshFilter.sharedMesh.