Back to API Reference
Class
FloatingLabelDecorator
sealed
Inherits:FieldDecorator
Animates a label between its resting position (inside the field) and a floated position (typically the top edge), scaling it down on the way; the label stays visible throughout. For a different motion model — a tween library, a path — write your own FieldDecorator.
public UniTextBase Label{ get; set }Label whose authored transform is the resting pose.
public RectTransform FloatedTo{ get; set }Transform whose position defines the floated pose.
public AnimationCurve Easing{ get; set }Curve mapping normalized transition progress to pose interpolation.
