You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, a user can add any component he wants to a map through user properties.
I'm not sure we want that.
For instance, if he tries to add a TilePos to a tile or a Transform to an object, it will lead to strange and undefined behaviour. This could be done unintentionnaly, for instance through the use of Bundle.
In order to mitigate this, we could use the new insert_if_new() API to insert components from the Tiled map instead of a regular insert().
Right now, a user can add any component he wants to a map through user properties.
I'm not sure we want that.
For instance, if he tries to add a
TilePos
to a tile or aTransform
to an object, it will lead to strange and undefined behaviour. This could be done unintentionnaly, for instance through the use of Bundle.In order to mitigate this, we could use the new
insert_if_new()
API to insert components from the Tiled map instead of a regularinsert()
.This new API will be available in Bevy 0.15: bevyengine/bevy#14646
The text was updated successfully, but these errors were encountered: