View source
class EventToPositionEffectContext
package feathers.motion.effects
extends BaseDelegateEffectContext
Sets the position on another effect context when a specific event is dispatched. The position is calculated by a custom callback.
Available since
1.0.0
.Constructor
new(context:IEffectContext, dispatcher:IEventDispatcher, eventType:String, callback:Event ‑> Float)
Creates a new EventToPositionEffectContext
object from the given arguments.
Available since
1.0.0
.Variables
callback:Event ‑> Float
The function called when the event is dispatched. Returns a new value
for the effect context's position
property (in the range from 0.0
to
1.0
).
Available since
1.0.0
.