copyUserData(dest, source, ignoredKeysInRoot?, isRoot?): any
Deep copy/clone from source to dest, assuming both are userData objects for three.js objects/materials/textures etc.
This will clone any property that can be cloned (apart from Object3D, Texture, Material) and deep copy the objects and arrays.
Parameters
dest: any
source: any
ignoredKeysInRoot: (string | symbol)[] = []
keys to ignore in the root object
isRoot: boolean = true
always true, used for recursion
Returns any
Note
Keep synced with copyMaterialUserData in three.js -> Material.js todo: merge these functions? by putting this inside three.js?
Deep copy/clone from source to dest, assuming both are userData objects for three.js objects/materials/textures etc. This will clone any property that can be cloned (apart from Object3D, Texture, Material) and deep copy the objects and arrays.