Namespace: EffectManager

EffectManager

The static class that loads Effekseer effects.

Methods

EffectManager.checkErrors()static

Checks if there are any errors that occurred while loading effects

EffectManager.clear()static

Clears the effect cache

EffectManager.isReady()booleanstatic

Check if all effects are done loading
Returns:
TypeDescription
booleanWhether all effects are done loading or not

EffectManager.load(filename)Graphics.effekseer.effect | nullstatic

Loads the effekseer file from the effects folder
NameTypeDescription
filenamestringThe name of the effect file (no file extension)
Returns:
TypeDescription
Graphics.effekseer.effect|null- The effect object if filename provided, or null if no filename provided

EffectManager.makeUrl(filename)stringstatic

Makes a full url from a filename
NameTypeDescription
filenamestringThe filename with no extension
Returns:
TypeDescription
stringThe full url to the file including folder, filename, and extension

EffectManager.onError(url)static

Handling after an effect encounters an error during load
NameTypeDescription
urlstringThe error file's url

EffectManager.onLoad(url)static

Handling after an effect is loaded
NameTypeDescription
urlstringThe loaded file's url

EffectManager.startLoading(url)Graphics.effekseer.effectstatic

Starts loading process for an effect at the given url
NameTypeDescription
urlstringThe full url of the file (folder + filename + extension)
Returns:
TypeDescription
Graphics.effekseer.effect- The effect object

EffectManager.throwLoadError(url)static

Throws an error with retry button
NameTypeDescription
urlstringThe url of the file to retry loading
Throws:
Will throw a retry screen error