findTimelineEntity

@MainThread
fun findTimelineEntity(includeDisabled: Boolean = false): Array<Entity>

Finds all entities that can play a Timeline within this entity and its children. The search traverses the entire entity hierarchy starting from the current entity. Each returned entity is a valid target for playTimeline, removing the need to look up nodes by hard-coded names.

Return

An array of entities that can play a Timeline; empty array if none are found.

Parameters

includeDisabled

Whether to include disabled entities in the search.

  • true: returns both enabled and disabled timeline-capable entities.

  • false: returns only enabled entities.