Hi,
not sure if this a bug or I am missing something but component sharing does not work form me, I do:
var ep = w.CreateEntity();
ep.Set<EnemyPrefab>();
ep.Set(new Color(r, g, b));
at this point I see single Color component in World components
then
var e = w.CreateEntity();
e.SetSameAs<Color>(ep);
still seeing a singe Color component in the World.
at this point there are 2 Color components in the World, the "prefab" using new one and and "instances" share the one at index 0 meaning I see no change of the color for the instances after changing the shared color of the "prefab".
(trying to emulate https://ajmmertens.medium.com/deconstructing-flecs-prefabs-d604b5ba0fcc with DefaultEcs)
Hi,
not sure if this a bug or I am missing something but component sharing does not work form me, I do:
at this point I see single Color component in World components
then
still seeing a singe Color component in the World.
at this point there are 2 Color components in the World, the "prefab" using new one and and "instances" share the one at index 0 meaning I see no change of the color for the instances after changing the shared color of the "prefab".
(trying to emulate https://ajmmertens.medium.com/deconstructing-flecs-prefabs-d604b5ba0fcc with DefaultEcs)