Closed NemesisMate closed 5 years ago
For effects, the "name" indirection is like 90% of what they are designed for. The idea that you can call runEffect(Button.EFFECT_PRESSED) and not worry about what effect instance is registered at that particular instant in time. The other 10% is the channel support.
So what part of Effect are you using in this case where you are not invoking it by name and not using the channel support? Isn't it just an animation at that point?
I'm going to close this issue pending further discussion. It would be good to know what it is your are actually trying to do which may factor back into this (and we can reopen) or lead to a different path.
Currently, to run an effect on an
EffectControl
the only way is to add it and then run it by its name. I'm trying to make a Tween that runs another effect that isn't added individually.For example:
Currently I did a tween that run the effects by name:
The problem with this is that when the press/release effects are added they can be added with other names. With the
runEffect(Effect)
support added this could be done with two advantages: