-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
A-AnimationMake things move and change over timeMake things move and change over timeC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!Quite 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 accomplishedThis issue requires design work to think about how it would best be accomplished
Description
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;
nixon-voxell
Metadata
Metadata
Assignees
Labels
A-AnimationMake things move and change over timeMake things move and change over timeC-FeatureA new feature, making something new possibleA new feature, making something new possibleD-ComplexQuite challenging from either a design or technical perspective. Ask for help!Quite 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 accomplishedThis issue requires design work to think about how it would best be accomplished