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
Lets say I have two scenes - person and gun. So I spawned a person, now I want to spawn gun scene and "attach" it (make a child) to the "RightHand" entity from the person scene.
What I'm currently doing is combining SceneSpawner::iter_instance_entities with Query::<(Entity, Name)>::iter_many to spawn gun as a child of the person. But it is not ergonomic and feels a little off having a system just for spawning child scenes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Lets say I have two scenes -
person
andgun
. So I spawned aperson
, now I want to spawngun
scene and "attach" it (make a child) to the "RightHand" entity from theperson
scene.What I'm currently doing is combining
SceneSpawner::iter_instance_entities
withQuery::<(Entity, Name)>::iter_many
to spawngun
as a child of theperson
. But it is not ergonomic and feels a little off having a system just for spawning child scenes.Is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions