Skip to content

AnimatableProperty trait's get_mut signature should access to resource #19554

Open
@guzuomuse

Description

@guzuomuse

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

to problem will be solved: can not update assets in get_mut
A description of why this particular feature should be added.
let mesh_material_3d = entity .get_mut::<MeshMaterial3d<StandardMaterial>>() .ok_or(AnimationEvaluationError::ComponentNotPresent(TypeId::of::< MeshMaterial3d<StandardMaterial>, >( )))? .into_inner();
now we have a MeshMaterial3d Component With a StandardMaterial resource, we have no way to access the referrenceof the StandardMaterial without the help of Asset,

What solution would you like?

offer another paramerter for get_mut ,or add some method to entity ,to have ability to access resource;

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AnimationMake things move and change over timeC-FeatureA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!S-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions