Class Entity

Entity classes in the scene.

Hierarchy

  • Entity

Constructors

Properties

_children: Entity[]

Entity childrens.

id: number

Entity count.

material: Material

Entity material.

mesh: Mesh

Entity mesh.

name: string

Entity name.

parent: Entity

Parent entity id.

transform: Transform

Entity ransform.

_count: number = 1

Entity count.

Methods

  • Add child entities.

    Returns

    The number of child entities.

    Parameters

    • entity: Entity

      Child entities to be loaded.

    Returns number

Generated using TypeDoc