Skip to content

Add serialize feature to bevy_transform #6378

@amiani

Description

@amiani

What problem does this solve or what need does it fill?

bevy_transform is missing a feature corresponding to the top-level serialize feature. This makes it inconsistent with bevy_input, bevy_time, etc. and makes serializing Transforms with serde a non-trivial task.

What solution would you like?

Transform and GlobalTransform implement serde::Serialize and serde::Deserialize when serialize feature is enabled.

What alternative(s) have you considered?

This can often be worked around by using serde's remote def method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TransformTranslations, rotations and scalesC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions