copy method
recursive
-- If set to true
, descendants of the object are copied next to the existing ones.
If set to false
, descendants are left unchanged. Default is true
.
Copies the given object into this object. Note: Event listeners and user-defined callbacks (onAfterRender and onBeforeRender) are not copied.
Implementation
@override
Scene copy(Object3D source, [bool? recursive]) {
super.copy(source);
// if ( source.background !== null ) this.background = source.background.clone();
// if ( source.environment !== null ) this.environment = source.environment.clone();
// if ( source.fog !== null ) this.fog = source.fog.clone();
// if ( source.overrideMaterial !== null ) this.overrideMaterial = source.overrideMaterial.clone();
// this.autoUpdate = source.autoUpdate;
// this.matrixAutoUpdate = source.matrixAutoUpdate;
return this;
}