Scene2D Objects
Last updated
Last updated
Scene2Ds also have several Objects. "Object" is a broad term used to describe a number of different components, each with their own purpose, behaviors, and characteristics.
For in-depth descriptions of each type of Object, see the Table of Contents below.
Objects in a Scene2D are managed in the Scene Outliner. There they can be created, deleted, edited, and organized. For more detail, see the Scene Outliner section. They are effectively the same processes that govern Scene Objects.
Attributes define specific characteristics of entities in Incari and can be modified in the Attribute Editor. Particularly, there are several sets of Attributes that are shared throughout Objects. These are explained in detail in the Common Attributes section:
Object
: The Name
, Type
, and Opacity
of an Object are shown here.
Tag
: Metadata that serves as an identifier for an Object or several of them.
Transformation
: They define the position and rotation of an Object in a Scene2D.
As in Scenes, Objects in Scene2Ds fall under a certain hierarchy. All Objects are children of the Root Object, but only one Object type can be a parent itself. These are Frames. No other Objects can contain children in Scene2Ds.
Every Scene2D has a Root Object, which is the parent of all Objects that are on the first hierarchy level. Thus, all Objects in a Scene2D are descendants of the Root Object. To obtain the Object ID of the Root Object, use the Get Root Node.
There are a few Nodes that allow the user to obtain and use information about the structure of Objects in a Scene2D. These are:
Get Children: Returns the children of an Object.
Get Parent: Returns the parent of an Object.
Has Children: Returns a Boolean indicating whether an Object has children.
For more information about trees, visit the Tree (data structure) page on Wikipedia.