CLASSES
TagsA - Z

FilesInput

Files

Description

class FilesInput

Constructor

new FilesInput(engine, scene, sceneLoadedCallback, progressCallback, additionalRenderLoopLogicCallback, textureLoadingCallback, startingProcessingFilesCallback, onReloadCallback, errorCallback)

Parameters

Name Type Description
engine Engine
scene Scene
sceneLoadedCallback (sceneFile: File, scene: Scene) => void
progressCallback (progress: ProgressEvent) => void
additionalRenderLoopLogicCallback () => void
textureLoadingCallback (remaining: number) => void
startingProcessingFilesCallback () => void
onReloadCallback (sceneFile: File) => void

Members

static FilesToLoad : { [key: string]: File }

onProcessFileCallback : (file: File, name: string, extension: string) =>

Methods

monitorElementForDragNDrop(elementToMonitor) void

Parameters

Name Type Description
elementToMonitor HTMLElement

dispose() void

loadFiles(event) void

Parameters

Name Type Description
event any

reload() void