Enum LabelEffect
Bit-flag positions for visual effects on UITKWorldLabel. Combine with IntBitExtensions to enable multiple effects simultaneously.
int flags = 0;
flags.EnableBit(LabelEffect.FadeIn);
flags.EnableBit(LabelEffect.FloatUp);
flags.EnableBit(LabelEffect.ScaleUp);
UITKLabelMaker.Display3D("Hit!", pos, Color.red, 2f, 1f, false, flags);
public enum LabelEffect
Fields
Bounce = 5Oscillates Y position with a sine wave for a bouncing effect.
FadeIn = 0Fades alpha from 0 to 1 over the first half of the label's lifetime.
FadeOut = 1Fades alpha from 1 to 0 over the second half of the label's lifetime.
FloatRandom = 7Moves the label in a random direction with simulated gravity, floating then falling.
FloatUp = 6Moves the label upward at a constant speed.
Pulse = 4Oscillates scale with a sine wave for a pulsing heartbeat effect.
ScaleDown = 3Scales the label down from target font size to 0 over its lifetime.
ScaleUp = 2Scales the label up from 0 to target font size over its lifetime.
Shake = 9Shakes the label position randomly for an impact/jitter effect.
Wave = 8Oscillates Y position with a sine wave for a gentle wave effect (slower than Bounce).