ecspresso
    Preparing search index...

    Function createTween

    • Create a single-target tween component.

      Parameters

      • component: string

        Component name on the entity

      • field: string

        Field path (dot-separated for nested, e.g. 'position.x')

      • to: number

        Target value

      • duration: number

        Duration in seconds

      • Optionaloptions: TweenOptions

        Optional configuration

      Returns Pick<TweenComponentTypes, "tween">

      Component object suitable for spreading into spawn()