#A problem with repeatedly inserting component
2 messages · Page 1 of 1 (latest)
Inserting a component of the same type overwrites the previous so it should ultimately have the same result in both cases
2 messages · Page 1 of 1 (latest)
like this
//before
commands.entity(e).insert(component0);
//after
//case 0
commands.entity(e).remove::<component0>().insert(component0);
//case 1
commands.entity(e).insert(component0);
so , Is case0 the same as case1?

Inserting a component of the same type overwrites the previous so it should ultimately have the same result in both cases