Skip to content

AssetBundle

The AssetBundle behavior is present on Objects that were created from a custom AssetBundle.

Function Summary

Function Name Description Return  
getLoopingEffectIndex()
getLoopingEffectIndex()
Index of the currently looping effect. Indexes starts at 0.
getLoopingEffects() Returns a Table with the keys "index" and "name" for each looping effect.
getTriggerEffects() Returns a Table with the keys "index" and "name" for each trigger effect.
playLoopingEffect(
playLoopingEffect(...)
index)
Starts playing a looping effect. Indexes starts at 0.
playTriggerEffect(
playTriggerEffect(...)
index)
Starts playing a trigger effect. Indexes starts at 0.

Function Details

getLoopingEffects()

Returns a Table with the keys "index" and "name" for each looping effect.

    -- Example usage
    effectTable = self.AssetBundle.getLoopingEffects()
    -- Example returned table
    {
        {index=0, name="Effect Name 1"},
        {index=1, name="Effect Name 2"},
    }


getTriggerEffects()

Returns a Table with the keys "index" and "name" for each trigger effect.

    -- Example usage
    effectTable = self.AssetBundle.getTriggerEffects()
    -- Example returned table
    {
        {index=0, name="Effect Name 1"},
        {index=1, name="Effect Name 2"},
    }