Skip to content

HierarchySystem.HieararchyObject

Pixxl edited this page Dec 20, 2019 · 8 revisions

HierarchyObject - Scripting API Documentation

[File] [Namespace]


HierarchyObject is the base type for HierarchyObjects. Custom HierarchyObjects have to derive from this class, and HierarchyScripts' type parameter has to be a derivative (or **HierarchyObject **itself) of HierarchyObject. HierarchyObject is abstract, meaning it cannot be instantiated (you cannot do new HierarchyObject()). You can however instantiate most custom HierachyObjects.


Analogues in other engines:

If you are familiar with the Unity game engine, then you will discover many similarities between GameObjects and HierarchyObjects, although you will also find many differences. Let's start with the major similarities:

  • GameObjects live in hierarchy structures, as do HierarchyObjects.

  • Components can be attatched to a GameObject, as can Scripts be attatched to HierarchyObjects.

  • GameObjects exist in scenes. Scenes are analogous to Crystal Clear's Hierarchies.

  • GameObjects can be stored as prefabs. HierarchyObjects can be stored as Hierarchies.

Here are some major differences:

  • HierarchyObject does not by default contain a Transform. All GameObjects in Unity have transforms, even when they aren't needed.

  • There are no different types of GameObjects in Unity. In HierarchyObject there are a lot of different HierarchyObjects, and you can even create your own.

Clone this wiki locally