Class ScyllaLogoElement
Renders the Scylla ASCII logo as a single monospaced UnityEngine.UIElements.Label with rich-text per-line color tags driving an animated color wave that cycles through a pool of ColorAnimationTextGradient presets.
Implements
Inherited Members
Namespace: Scylla.Core.Editor
Assembly: ScyllaCore.Editor.dll
Syntax
public sealed class ScyllaLogoElement : VisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
Remarks
The animation uses UnityEngine.UIElements.VisualElement.schedule, which auto-pauses when
the element is detached from a panel and resumes when re-attached. No manual
EditorApplication.update subscription is needed.
Animation can be toggled globally via AnimationEnabled. When disabled, all lines render in AccentPrimary.
Add the element directly to your visual tree; no Start / Stop calls are required. The animator boots itself on UnityEngine.UIElements.AttachToPanelEvent and tears down on UnityEngine.UIElements.DetachFromPanelEvent.
A single multi-line Label with WhiteSpace.Pre preserves the leading
indentation and trailing padding that aligns the ASCII art across lines. Splitting
the logo into one Label per line caused per-line auto-trimming of trailing
whitespace during layout measurement, which let lines drift horizontally relative
to one another.
Constructors
ScyllaLogoElement()
Creates a new logo element with the default 1-second animation cycle. The element starts animating as soon as it is attached to a panel.
Declaration
public ScyllaLogoElement()
ScyllaLogoElement(float)
Creates a new logo element with a custom animation cycle duration. Shorter durations produce a faster wave.
Declaration
public ScyllaLogoElement(float cycleDuration)
Parameters
| Type | Name | Description |
|---|---|---|
| float | cycleDuration | Duration of one full color wave in seconds. |
Properties
AnimationEnabled
Gets or sets whether the logo color-wave animation is enabled. Persisted in UnityEditor.EditorPrefs under PREFS_LOGO_ANIMATION_ENABLED. When disabled, all logo lines render in AccentPrimary.
Declaration
public static bool AnimationEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |