Interface ITransition
- Namespace
- Gloam.Core.Interfaces
- Assembly
- Gloam.Core.dll
Represents a visual transition effect between scenes
public interface ITransition
Properties
Duration
Gets the total duration of the transition
TimeSpan Duration { get; }
Property Value
IsComplete
Gets whether the transition has completed
bool IsComplete { get; }
Property Value
Name
Gets the name of the transition
string Name { get; }
Property Value
Progress
Gets the current progress of the transition (0.0 to 1.0)
float Progress { get; }
Property Value
Methods
RenderAsync(RenderLayerContext, CancellationToken)
Renders the transition effect
ValueTask RenderAsync(RenderLayerContext context, CancellationToken ct = default)
Parameters
context
RenderLayerContextThe render layer context
ct
CancellationTokenCancellation token
Returns
Reset()
Resets the transition to its initial state
void Reset()
Start()
Starts the transition
void Start()
Update(TimeSpan)
Updates the transition with the elapsed time
void Update(TimeSpan deltaTime)
Parameters
deltaTime
TimeSpanTime elapsed since last update