Documentation

Unity Engine

Download Unity

Unity Engine

component

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

Definition

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