FadeGroup
Architecture
Scopes
Scope
Factory Method
Description
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