Function AddObjectAccessorToKey
-
AddObjectAccessorToKey<
GLTFTargetType = any,
BabylonTargetType = any,
BabylonValueType = any,
>(
key: string,
accessor: IObjectAccessor<
GLTFTargetType,
BabylonTargetType,
BabylonValueType,
>,
mapping?: object,
): voidType Parameters
- GLTFTargetType = any
- BabylonTargetType = any
- BabylonValueType = any
Parameters
- key: string
the key to add the object accessor at. For example /cameras/{}/perspective/aspectRatio
- accessor: IObjectAccessor<GLTFTargetType, BabylonTargetType, BabylonValueType>
the object accessor to add
- mapping: object = objectModelMapping
object-model mapping to update; defaults to the process-wide mapping used as the template for new converters
Returns void
This will ad a new object accessor in the object model at the given key. Note that this will NOT change the typescript types. To do that you will need to change the interface itself (extending it in the module that uses it)