Loading...
Searching...
No Matches
CityBuilderCore.Fader Class Reference

Detailed Description

simple helper that fades a canvas group in or out over a short period

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.Fader:

Public Member Functions

void Load ()
 
void LoadNamed (string name)
 
void SetVisibility (bool value)
 
IEnumerator WaitForShow ()
 
void Show ()
 
void ShowNow ()
 
void ShowDelayed (int frames)
 
void ShowDelayed (float seconds)
 
IEnumerator WaitForHide ()
 
void Hide ()
 
void HideNow ()
 
void HideDelayed (int frames)
 
void HideDelayed (float seconds)
 
IEnumerator WaitForFadeIn ()
 
void FadeIn ()
 
void FadeIn (Action callback)
 
IEnumerator WaitForFadeOut ()
 
void FadeOut ()
 
void FadeOut (Action callback)
 
void DelayedFadeIn (int frames=5)
 
void DelayedFadeOut (int frames=5)
 
void DelayedFadeIn (float seconds)
 
void DelayedFadeOut (float seconds)
 

Static Public Member Functions

static void TryFadeOut (Fader fader, Action callback)
 

Public Attributes

CanvasGroup CanvasGroup
 
float Duration
 
bool SetInteractable
 
bool SetVolume
 

Protected Member Functions

virtual void setFading (float value)