Skip to content

Update/change fields of a reflected/dynamic type #14850

@DasLixou

Description

@DasLixou

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

I can only get a &mut dyn Reflect from field_mut from DynamicTupleStruct (and similar) which I can modify, but e.g. changing the field from being a DynamicStruct to a DynamicEnum isn't possible.

What solution would you like?

Add the option to replace fields

What alternative(s) have you considered?

I currently have no idea of how to do that externally..

Additional context

Might be easier when unifying fields (#14847 (comment)) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ReflectionRuntime information about typesC-FeatureA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!

    Type

    No type

    Projects

    Status

    Open

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions