Getting Started
...
Glossary
H-M Terms

Heirarchy

3min

A hierarchy is a tree-like structure that is used to organize game objects. The hierarchy is made up of nodes, which can be parent nodes or child nodes. A parent node can have multiple child nodes, but a child node can only have one parent node.

The hierarchy is used to organize game objects in a way that makes it easy to find and access them. It is also used to control the relationships between game objects. For example, a parent node can control the movement of its child nodes.

Here are some of the benefits of using a hierarchy in game development:

  • Efficient: The hierarchy is an efficient way to organize game objects. This is because it allows the game engine to quickly find and access the objects that it needs.
  • Scalable: The hierarchy can be scaled up or down to accommodate different game sizes. This makes it a versatile tool that can be used to create games of all sizes.
  • Easy to use: The hierarchy is relatively easy to use. This is because it is a simple concept that is easy to understand.

Here are some of the drawbacks of using a hierarchy in game development:

  • Can be complex: The hierarchy can be complex for large games with many game objects.
  • Can be slow: The hierarchy can be slow for games with a lot of child nodes.
  • Can be difficult to debug: The hierarchy can be difficult to debug for games with complex hierarchies.

Overall, the hierarchy is a powerful tool that can be used to organize game objects in a way that makes it easy to find and access them. However, it can also be complex and slow for large games.

Here are some additional tips for using a hierarchy in game development:

  • Use a consistent naming convention: Use a consistent naming convention for your game objects. This will make it easier to find and access them in the hierarchy.
  • Use comments: Use comments to document your hierarchy. This will make it easier to understand how the hierarchy works.
  • Use a debugger: Use a debugger to debug your hierarchy. This will help you to find and fix any problems.

Feedback

Please be sure to submit issues or feature requests through the embedded feedback form. In the event it is a major issue please contact us directly through Discord.

Updated 03 Apr 2024
Doc contributor
Did this page help you?