// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. using FlaxEditor.SceneGraph.Actors; using FlaxEngine; using FlaxEngine.GUI; namespace FlaxEditor.SceneGraph.GUI { /// /// A custom implementation for . /// /// public sealed class SceneTreeNode : ActorTreeNode { /// public override void UpdateText() { base.UpdateText(); // Append asset name if used var filename = ((Scene)Actor).Filename; if (!string.IsNullOrEmpty(filename)) { Text += " ("; Text += filename; Text += ")"; } // Append star character to modified scenes if (ActorNode is SceneNode node && node.IsEdited) Text += "*"; } /// protected override Color CacheTextColor() { return Style.Current.Foreground; } } }