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 |
|
|
| progressCallback | | progress | ProgressEvent |
| additionalRenderLoopLogicCallback | |
| textureLoadingCallback | | remaining | number |
| startingProcessingFilesCallback | |
| onReloadCallback | | sceneFile | File |
| errorCallback | | sceneFile | File |
Members
static FilesToLoad : { [key: string]: File }
onProcessFileCallback : (file: File, name: string, extension: string) =>
Parameters
|
Name |
Type |
Description |
|
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