Class EffectControl<T extends Spatial>

java.lang.Object
com.jme3.scene.control.AbstractControl
com.simsilica.lemur.effect.EffectControl<T>
All Implemented Interfaces:
Savable, Control, JmeCloneable, Cloneable

public class EffectControl<T extends Spatial> extends AbstractControl
Manages the available named Effects for a Spatial and keeps track of the existing effects run for a particular channel. Callers can run any of the configured effects by name.
  • Constructor Details

    • EffectControl

      public EffectControl(AnimationState anim)
      Creates an effect control that will use the specified AnimationState for running its effects. Normally an application will only have one AnimationState but it's possible to have multiple states depending on need. For example, the UI might be run by one AnimationState while certain in-game controls run by a different AnimationState so that they can be paused without affecting the UI.
    • EffectControl

      public EffectControl()
      Creates an effect control that will run animations using the default animation state returned by AnimationState.getDefaultInstance().
  • Method Details