Documentation

Unity Engine

Unity Engine

component

Points to the owning component - if available, otherwise null.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Property
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
public Component component { get; set; }

Remarks

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