InstantiationTools

Class used to enable instatition of objects by class name

Hierarchy

  • InstantiationTools

Index

Properties

Static RegisteredExternalClasses

Find examples in Playground
RegisteredExternalClasses: object

Use this object to register external classes like custom textures or material to allow the laoders to instantiate them

Type declaration

  • [key: string]: Object

Methods

Static Instantiate

Find examples in Playground
  • Instantiate(className: string): any
  • Tries to instantiate a new object from a given class name

    Parameters

    • className: string

      defines the class name to instantiate

    Returns any

    the new object or null if the system was not able to do the instantiation

Generated using TypeDoc