Skip to content

NetworkTransformReliable SyncScale Serialize Error #3349

@south-orange

Description

@south-orange

When I try to use NetworkTransformReliable sync game object's scale, it doesn't work and I found some problem in the code.
You used snapshot.position where you sync scale.

Here is your code
https://github.com/MirrorNetworking/Mirror/blob/master/Assets/Mirror/Components/NetworkTransformReliable/NetworkTransformReliable.cs
line 238

236    // save serialized as 'last' for next delta compression
237    if (syncPosition) Compression.ScaleToLong(snapshot.position, positionPrecision, out lastSerializedPosition);
238    if (syncScale)    Compression.ScaleToLong(snapshot.position, scalePrecision,    out lastSerializedScale);

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