Skip to content

Can an overload of 'MotionSequenceBuilder.Run' that accepts a state be added? #192

@c3-hoge-fuga-piyo

Description

@c3-hoge-fuga-piyo

I would like to use it in the following way:

MotionHandle Example(float delay, bool loop, bool ignoreTimeScale)
{
    var s = LSequence.Create();
    {
        /* Append|Join various MotionHandles... */
    }
    return s.Run((delay, loop, ignoreTimeScale), static (builder, state) => builder
        .WithDelay(state.delay)
        .WithLoop(state.loop ? -1 : 1)
        .WithScheduler(state.ignoreTimeScale ? MotionScheduler.UpdateIgnoreTimeScale : MotionScheduler.Update));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions