FadeGroup

Animated expand/collapse scope wrapping Sirenix's SirenixEditorGUI.BeginFadeGroup/EndFadeGroup. Provides smooth visibility transitions for foldable inspector sections with configurable animation duration.

Architecture

spinner

Scopes

Scope
Factory Method
Description

DrawGUI.FadeGroup(key, isExpanded, ...)

Animated expand/collapse with visibility and animation value output

Usage

using static Paragon.Editor.DrawGUI;

// Basic foldout with animation
using (FadeGroup(this, isFolded, out bool isVisible))
{
    if (isVisible)
    {
        Label("Animated content");
    }
}

// With animation value for custom effects
using (FadeGroup(this, isFolded, out bool isVisible, out float t, duration: 0.5f))
{
    if (isVisible)
    {
        // t ranges from 0 (collapsed) to 1 (expanded)
        Label($"Transition: {t:F2}");
    }
}

See Also

Last updated