Skip to main content

GetComponentInParentAttribute

A class in Alta.Attributes, the global namespace.

Like GetComponentAttribute, but searches this object and its parents.

Constructors​

MemberWhat it is
GetComponentInParentAttribute()Creates a GetComponentInParentAttribute with default values.

Methods​

MemberWhat it is
override Component GetComponent(Transform transform, Type type)First matching component in this object or its parents.