Skip to content

Reflection: type aliases #12387

@viridia

Description

@viridia

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

The ability to define reflection type names that are both stable and reasonably succinct would be valuable, particularly in cases involving evolution of asset formats:

What solution would you like?

From the discord:

#[reflect(Reflect)]
#[type_path(alias = scenery::FloorSurface)]
struct StdFloorSurface { .. }

Additional context

There's a PR #5830 which attempts to solve this problem in a slightly different way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReflectionRuntime information about typesC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions