FadeUIElement

The FadeUIElement class manages the fading in and out of a VisualElement.

Constructor

Name Type Description
coroutineRunner MonoBehaviour MonoBehaviour that handles running coroutines.
visualElement VisualElement The VisualElement to be faded.
easingMode EasingMode Defines the easing effect applied during fade transitions.
debug bool Logs fade transitions.

Public Methods

FadeIn

FadeOut

SetDuration

GetDuration

Returns the predefined duration of fade transitions. Note that it does not reflect the current active transition duration.

SetEasing

Stop