Class TimelineTrackGroup
A collapsible group of TimelineTracks — every lane belonging to one object.
Inheritance
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
[UxmlElement]
public class TimelineTrackGroup : TimelinePart, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IContextOverrideElement, IAdditionalDataHolder
Remarks
The group draws a muted header lane and, while expanded, its child tracks flush beneath it. The Timeline's gutter renders the title and the expand chevron. When collapsed the header shows a read-only summary of every keyframe time in the group, so a folded object still reads at a glance.
Examples
<appui:TimelineTrackGroup id="cube" title="Cube">
<appui:TimelineTrack id="position" label="Position" />
<appui:TimelineTrack id="rotation" label="Rotation" />
</appui:TimelineTrackGroup>
Constructors
TimelineTrackGroup()
Default constructor.
Declaration
public TimelineTrackGroup()
Fields
headerUssClassName
The styling class of the group's summary header lane.
Declaration
public const string headerUssClassName = "appui-timeline__group-header"
Field Value
| Type | Description |
|---|---|
| string |
summaryUssClassName
The styling class of one diamond in the collapsed summary.
Declaration
public const string summaryUssClassName = "appui-timeline__group-summary"
Field Value
| Type | Description |
|---|---|
| string |
tracksUssClassName
The styling class of the container holding the child tracks.
Declaration
public const string tracksUssClassName = "appui-timeline__group-tracks"
Field Value
| Type | Description |
|---|---|
| string |
ussClassName
The TimelineTrackGroup main styling class.
Declaration
public const string ussClassName = "appui-timeline__group"
Field Value
| Type | Description |
|---|---|
| string |
Properties
contentContainer
Child tracks are added to the group's own lane container.
Declaration
public override VisualElement contentContainer { get; }
Property Value
| Type | Description |
|---|---|
| VisualElement |
Overrides
expanded
Whether the child tracks are laid out. Defaults to true.
Declaration
[Tooltip("Whether the child tracks are laid out.")]
[CreateProperty]
[UxmlAttribute]
public bool expanded { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
header
The group's summary header lane.
Declaration
public VisualElement header { get; }
Property Value
| Type | Description |
|---|---|
| VisualElement |
headerHeight
The height the header lane actually renders at.
Declaration
public float headerHeight { get; }
Property Value
| Type | Description |
|---|---|
| float |
height
The header lane height in pixels. A negative value defers to the Timeline's trackHeight.
Declaration
[Tooltip("The header lane height in pixels. Negative defers to the Timeline's trackHeight.")]
[CreateProperty]
[UxmlAttribute]
public float height { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
id
A stable identifier for the group.
Declaration
[Tooltip("A stable identifier for the group.")]
[CreateProperty]
[UxmlAttribute]
public string id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
title
The text the Timeline's gutter shows for this group.
Declaration
[Tooltip("The text the Timeline's gutter shows for this group.")]
[CreateProperty]
[UxmlAttribute]
public string title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
OnAxisChanged()
Re-project this part onto the current axis.
Declaration
protected override void OnAxisChanged()
Overrides
Remarks
Called on attach and on every axis change — a scale, zoom, pan, playhead, tick or
selection change. Guard against a null axis.
Events
expandedChanged
Raised when the group is expanded or collapsed.
Declaration
public event Action<bool> expandedChanged
Event Type
| Type | Description |
|---|---|
| Action<bool> |