FilesInput

Hierarchy

  • FilesInput

Index

Constructors

constructor

  • new FilesInput(engine: Engine, scene: Scene, sceneLoadedCallback: function, progressCallback: function, additionalRenderLoopLogicCallback: function, textureLoadingCallback: function, startingProcessingFilesCallback: function, onReloadCallback: function, errorCallback: function): FilesInput
  • Parameters

    • engine: Engine
    • scene: Scene
    • sceneLoadedCallback: function
        • (sceneFile: File, scene: Scene): void
        • Parameters

          • sceneFile: File
          • scene: Scene

          Returns void

    • progressCallback: function
    • additionalRenderLoopLogicCallback: function
        • (): void
        • Returns void

    • textureLoadingCallback: function
        • (remaining: number): void
        • Parameters

          • remaining: number

          Returns void

    • startingProcessingFilesCallback: function
        • (): void
        • Returns void

    • onReloadCallback: function
        • (sceneFile: File): void
        • Parameters

          • sceneFile: File

          Returns void

    • errorCallback: function
        • (sceneFile: File, scene: Scene, message: string): void
        • Parameters

          • sceneFile: File
          • scene: Scene
          • message: string

          Returns void

    Returns FilesInput

Properties

onProcessFileCallback

onProcessFileCallback: function

Type declaration

    • (file: File, name: string, extension: string): true
    • Parameters

      • file: File
      • name: string
      • extension: string

      Returns true

Static FilesToLoad

FilesToLoad: object

Type declaration

  • [key: string]: File

Methods

dispose

  • dispose(): void
  • Returns void

loadFiles

  • loadFiles(event: any): void
  • Parameters

    • event: any

    Returns void

monitorElementForDragNDrop

  • monitorElementForDragNDrop(elementToMonitor: HTMLElement): void
  • Parameters

    • elementToMonitor: HTMLElement

    Returns void

reload

  • reload(): void
  • Returns void

Generated using TypeDoc