diff --git a/Source/Editor/GUI/Timeline/Timeline.cs b/Source/Editor/GUI/Timeline/Timeline.cs
index 5027c577d..437f34bc1 100644
--- a/Source/Editor/GUI/Timeline/Timeline.cs
+++ b/Source/Editor/GUI/Timeline/Timeline.cs
@@ -1930,6 +1930,18 @@ namespace FlaxEditor.GUI.Timeline
}
}
+ ///
+ /// Sets the text for the No Tracks UI.
+ ///
+ /// The text.
+ public void SetNoTracksText(string text)
+ {
+ if (_noTracksLabel != null)
+ {
+ _noTracksLabel.Text = text ?? "No tracks";
+ }
+ }
+
///
protected override void PerformLayoutBeforeChildren()
{
diff --git a/Source/Editor/Windows/Assets/SceneAnimationWindow.cs b/Source/Editor/Windows/Assets/SceneAnimationWindow.cs
index 78de0cfae..cf65d07fb 100644
--- a/Source/Editor/Windows/Assets/SceneAnimationWindow.cs
+++ b/Source/Editor/Windows/Assets/SceneAnimationWindow.cs
@@ -632,6 +632,7 @@ namespace FlaxEditor.Windows.Assets
};
_timeline.Modified += OnTimelineModified;
_timeline.PlayerChanged += OnTimelinePlayerChanged;
+ _timeline.SetNoTracksText("Loading...");
// Toolstrip
_saveButton = (ToolStripButton)_toolstrip.AddButton(Editor.Icons.Save64, Save).LinkTooltip("Save");
@@ -857,6 +858,7 @@ namespace FlaxEditor.Windows.Assets
// Setup
_undo.Clear();
+ _timeline.SetNoTracksText(null);
_timeline.Enabled = true;
ClearEditedFlag();
}