Function copyUserData

  • 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.


    • dest: any
    • source: any
    • ignoredKeysInRoot: (string | symbol)[] = []

      keys to ignore in the root object

    • isRoot: boolean = true

      always true, used for recursion

    Returns any


    Keep synced with copyMaterialUserData in three.js -> Material.js todo: merge these functions? by putting this inside three.js?

Generated using TypeDoc