Skip to content

FadeEventData

Class Documentation

Edit documentation

An animation event that fades the unit. When the event starts, the unit's fade value starts to move to mTargetAlpha, and reaches it after mTimeToFade.

The event does its work once, at the start. It does nothing when it ends or when the clip stops, so the unit stays at the target value. An animation that fades the unit out must fade it in again with another event.

Properties

mTargetAlpha

F32 = 0.5
Edit documentation

The fade value to reach. Shipped events mostly use 0 to fade the unit out and 1 to fade it in.

mTimeToFade

F32 = 0
Edit documentation

The time the fade takes, in seconds. 0 sets the target value at once.