@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
16 lines (15 loc) • 842 B
TypeScript
/**
* Class containing a set of static utilities functions for deep copy.
*/
export declare class DeepCopier {
/**
* Tries to copy an object by duplicating every property
* @param source defines the source object
* @param destination defines the target object
* @param doNotCopyList defines a list of properties to avoid
* @param mustCopyList defines a list of properties to copy (even if they start with _)
* @param shallowCopyValues defines wether properties referencing objects (none cloneable) must be shallow copied (false by default)
* @remarks shallowCopyValues will not instantite the copied values which makes it only usable for "JSON objects"
*/
static DeepCopy(source: any, destination: any, doNotCopyList?: string[], mustCopyList?: string[], shallowCopyValues?: boolean): void;
}