QEntity is a
QNode subclass that can aggregate several
QComponent instances that will specify its behavior. More…
By itself a
QEntity is an empty shell. The behavior of a
QEntity object is defined by the
QComponent objects it references. Each Qt3D backend aspect will be able to interpret and process an Entity by recognizing which components it is made up of. One aspect may decide to only process entities composed of a single
QTransform component whilst another may focus on
- class PySide6.Qt3DCore.Qt3DCore.QEntity([parent=None])#
Constructs a new
QEntity instance with
parent as parent.
Adds a new reference to the component
QComponent has no parent, the
QEntity will set itself as its parent thereby taking ownership of the component.
- Return type
Returns the list of
QComponent instances the entity is referencing.
Returns the parent
QEntity instance of this entity. If the immediate parent isn’t a
QEntity , this function traverses up the scene hierarchy until a parent
QEntity is found. If no
QEntity parent can be found, returns null.
Removes the reference to