Skip to content

InstantComplete Mode #2

@BerndNK

Description

@BerndNK

I want a property for TweenHandler, to instantly complete Tweens.

var handler = new TweenHandler();
handler.InstantComplete(true);

handler.Add(point.Tween(x => x.X).To(20).In(1.0).OnComplete(OnCompleteHandler).OnUpdate(OnUpdateHandler));
// at this point point.x equals 20, OnUpdate- and OnCompleteHandler have been called

The basic idea is to simply 'disable' all animations for a handler, while still having the full functionality of event handling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions