Skip to content

One particular Tweening behaviour works in the the Editor but doesn't work on an Android build #528

@Vivraan

Description

@Vivraan

Offending Code

internal void Init(in float initStartDistanceOffset, in float speedFactor)
{
    Following = false;
    startDistanceOffset = initStartDistanceOffset;
    // mod-assign so the change is visible in Debug mode
    startDistanceOffset %= pathCreator.path.length;
    distance = startDistanceOffset;
    speed = originalSpeed * speedFactor;

    DOTween.Sequence()
        .Append(
            transform.DOMove(
                pathCreator.path.GetPointAtDistance(distance), initRepositionDuration))
        .Insert(
            0, transform.DORotateQuaternion(
                pathCreator.path.GetRotationAtDistance(distance), initRepositionDuration))
        .AppendCallback(() => Following = true);
}

Expected Behaviour

(Video removed)

Actual Behaviour

(Image removed)
(The gun and god rays spin as expected)

Steps taken to address issue

  1. DID NOT WORK
    Changed the sequence into raw tweens like so:
            transform.DOMove(
                pathCreator.path.GetPointAtDistance(distance), initRepositionDuration);
            
            transform.DORotateQuaternion(
                pathCreator.path.GetRotationAtDistance(distance), initRepositionDuration)
                .onComplete += () => Following = true;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions