The instance handle is used to interface with the mesh that is rendered using instancing.

Constructors

Properties

meshInformation: MeshInformation

The mesh information of the object

object: Mesh

The object that is being instanced

renderer: InstancedMeshRenderer

The instancer/BatchedMesh that is rendering this object

Accessors

  • get indexCount(): any
  • Returns any

  • get isActive(): boolean
  • Returns boolean

  • get maxIndexCount(): number
  • Returns number

  • get maxVertexCount(): number
  • Returns number

  • get name(): string
  • The name of the object

    Returns string

  • get reservedIndexCount(): number
  • Returns number

  • get reservedVertexCount(): number
  • Returns number

  • get vertexCount(): any
  • Returns any

Methods

  • Adds this object to the instancing renderer (effectively activating instancing)

    Returns void

  • Removes this object from the instancing renderer

    Parameters

    • delete_: boolean

    Returns void

  • Can be used to change the geometry of this instance

    Parameters

    Returns boolean

  • Updates the matrix of the instance

    Parameters

    Returns void

  • Updates the matrix from the rendered object. Will also call updateWorldMatrix internally

    Parameters

    • updateChildren: boolean = false
    • updateMatrix: boolean = true

    Returns void

Generated using TypeDoc