Namespace: SceneCallbacks
Namespace: SceneCallbacks
Function signatures for using with SceneManager callbacks.
Interfaces
Type Aliases
EndTraverseInstancedLodsCallbackFunction
Ƭ EndTraverseInstancedLodsCallbackFunction: (child
: InstancedLods
, objIdx
: number
) => void
Callback function called at the end of LOD traversing.
Type declaration
▸ (child
, objIdx
): void
Parameters
Name | Type | Description |
---|---|---|
child | InstancedLods | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
Returns
void
EndTraverseInstancedMeshCallbackFunction
Ƭ EndTraverseInstancedMeshCallbackFunction: (child
: InstancedMesh
, objIdx
: number
) => void
Callback function called at the end of instanced mesh traversing.
Type declaration
▸ (child
, objIdx
): void
Parameters
Name | Type | Description |
---|---|---|
child | InstancedMesh | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
Returns
void
EndTraverseMeshCallbackFunction
Ƭ EndTraverseMeshCallbackFunction: (geometry
: BufferGeometry
, isMesh
: boolean
, object
: Mesh
| LineSegments
) => void
Callback function called at the end of each buffer traversing.
Type declaration
▸ (geometry
, isMesh
, object
): void
Parameters
Name | Type | Description |
---|---|---|
geometry | BufferGeometry | Current BufferGeometry instance. |
isMesh | boolean | Is buffer mesh or line. |
object | Mesh | LineSegments | - |
Returns
void
ErrorCallbackFunction
Ƭ ErrorCallbackFunction: (modelId
: string
, error
: string
) => void
Callback function for error model event.
Type declaration
▸ (modelId
, error
): void
Parameters
Name | Type | Description |
---|---|---|
modelId | string | GUID for loaded model. |
error | string | error message. |
Returns
void
LoadedCallbackFunction
Ƭ LoadedCallbackFunction: (modelId
: string
, isLastModel
: boolean
) => void
Callback function for load model event.
Type declaration
▸ (modelId
, isLastModel
): void
Parameters
Name | Type | Description |
---|---|---|
modelId | string | GUID for loaded model. |
isLastModel | boolean | - |
Returns
void
NotFoundCallbackFunction
Ƭ NotFoundCallbackFunction: (modelId
: string
) => void
Callback function for notFound model event.
Type declaration
▸ (modelId
): void
Parameters
Name | Type | Description |
---|---|---|
modelId | string | GUID for loaded model. |
Returns
void
ProgressCallbackFunction
Ƭ ProgressCallbackFunction: (progress
: number
) => void
Callback function for models load progress event.
Type declaration
▸ (progress
): void
Parameters
Name | Type | Description |
---|---|---|
progress | number | progress of loaded models in percent. |
Returns
void
StartTraverseInstancedLodsCallbackFunction
Ƭ StartTraverseInstancedLodsCallbackFunction: (child
: InstancedLods
, objIdx
: number
) => void
Callback function called at the start of LOD traversing.
Type declaration
▸ (child
, objIdx
): void
Parameters
Name | Type | Description |
---|---|---|
child | InstancedLods | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
Returns
void
StartTraverseInstancedMeshCallbackFunction
Ƭ StartTraverseInstancedMeshCallbackFunction: (child
: InstancedMesh
, objIdx
: number
) => void
Callback function called at the start of instanced mesh traversing.
Type declaration
▸ (child
, objIdx
): void
Parameters
Name | Type | Description |
---|---|---|
child | InstancedMesh | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
Returns
void
StartTraverseMeshCallbackFunction
Ƭ StartTraverseMeshCallbackFunction: (geometry
: BufferGeometry
, objIdx
: number
, isMesh
: boolean
, object
: Mesh
| LineSegments
) => void
Callback function called at the start of each buffer before traversing.
Type declaration
▸ (geometry
, objIdx
, isMesh
, object
): void
Parameters
Name | Type | Description |
---|---|---|
geometry | BufferGeometry | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
isMesh | boolean | Is buffer mesh or line. |
object | Mesh | LineSegments | - |
Returns
void
TraverseInstanceMeshValCallbackFunction
Ƭ TraverseInstanceMeshValCallbackFunction: (child
: InstancedMesh
, objIdx
: number
, elNum
: number
, matrix
: Matrix4
, idx
: number
, val
: any
) => void
Callback function called for each mesh instance item.
Type declaration
▸ (child
, objIdx
, elNum
, matrix
, idx
, val
): void
Parameters
Name | Type | Description |
---|---|---|
child | InstancedMesh | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
elNum | number | Current element number. |
matrix | Matrix4 | Transformation matrix for current item. |
idx | number | Instance item number. |
val | any | Current custom value. |
Returns
void
TraverseInstancedLodsCallbackFunction
Ƭ TraverseInstancedLodsCallbackFunction: (child
: InstancedLods
, objIdx
: number
, elNum
: number
, matrix
: Matrix4
, idx
: number
) => void
Callback function called for each LOD instance item.
Type declaration
▸ (child
, objIdx
, elNum
, matrix
, idx
): void
Parameters
Name | Type | Description |
---|---|---|
child | InstancedLods | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
elNum | number | Current element number. |
matrix | Matrix4 | Transformation matrix for current item. |
idx | number | Instance item number. |
Returns
void
TraverseInstancedMeshCallbackFunction
Ƭ TraverseInstancedMeshCallbackFunction: (child
: InstancedMesh
, objIdx
: number
, elNum
: number
, matrix
: Matrix4
, idx
: number
, val?
: any
) => void
Callback function called for each instanced mesh item.
Type declaration
▸ (child
, objIdx
, elNum
, matrix
, idx
, val?
): void
Parameters
Name | Type | Description |
---|---|---|
child | InstancedMesh | Current BufferGeometry instance. |
objIdx | number | Current mesh index. |
elNum | number | Current element number. |
matrix | Matrix4 | Transformation matrix for current item. |
idx | number | Instance item number. |
val? | any | - |
Returns
void
TraverseMeshCallbackFunction
Ƭ TraverseMeshCallbackFunction: (geometry
: BufferGeometry
, elNum
: number
, idx
: number
, val?
: any
) => void
Callback function called for each buffer vertex.
Type declaration
▸ (geometry
, elNum
, idx
, val?
): void
Parameters
Name | Type | Description |
---|---|---|
geometry | BufferGeometry | Current BufferGeometry instance. |
elNum | number | Current element number. |
idx | number | Current buffer index in BufferGeometry instance. |
val? | any | - |
Returns
void
TraverseMeshValCallbackFunction
Ƭ TraverseMeshValCallbackFunction: (geometry
: BufferGeometry
, elNum
: number
, idx
: number
, val
: any
) => void
Callback function called for each buffer vertex with custom value.
Type declaration
▸ (geometry
, elNum
, idx
, val
): void
Parameters
Name | Type | Description |
---|---|---|
geometry | BufferGeometry | Current BufferGeometry instance. |
elNum | number | Current element number. |
idx | number | Current buffer index in BufferGeometry instance. |
val | any | Current custom value. |
Returns
void