Skip to main content

GetComponentsInParentAttribute

A class in Alta.Attributes, the global namespace.

Like GetComponentsAttribute, but collects components from this object and its parents.

Constructors​

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

Methods​

MemberWhat it is
override Component[] GetComponents(Transform transform, Type type)All matching components in this object and its parents, honouring IncludeInActive.