Skip to content

Commit

Permalink
word on hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Nov 5, 2024
1 parent 1ced7b2 commit 1a1d12a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bevy-workshop/src/intro/systems.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ If you want more details on how this works, you can find them here: [Dependency

Commands are the primary means of modifying the game world, allowing you to add, mutate, or remove entities and components. They are not executed straight away, but at sync points between systems.

## Hierarchy

Bevy has the concept of hierarchy, with Parent / Children relationship. This is heavily used in UI for layout, or in animations.

When an entity is a child of another, its position is relative to its parent. It's also possible to remove a complete branch of a hierarchy at once.

## Side note: UI

The startup system in the example above spawns text. It first spawns a node entity, which functions similarly to a `<div>` HTML tag, used to center the text, and then spawns the text itself as a child.
Expand Down

0 comments on commit 1a1d12a

Please sign in to comment.