instantiationTools.d.ts 623 B

123456789101112131415161718
  1. /**
  2. * Class used to enable instantiation of objects by class name
  3. */
  4. export declare class InstantiationTools {
  5. /**
  6. * Use this object to register external classes like custom textures or material
  7. * to allow the loaders to instantiate them
  8. */
  9. static RegisteredExternalClasses: {
  10. [key: string]: Object;
  11. };
  12. /**
  13. * Tries to instantiate a new object from a given class name
  14. * @param className defines the class name to instantiate
  15. * @returns the new object or null if the system was not able to do the instantiation
  16. */
  17. static Instantiate(className: string): any;
  18. }