Color4 is showing an error on scene

Hi Guys, I’m having an issue where vs code is giving me an error message on the following lines. It is saying

Type ‘Color4’ is missing the following properties from type ‘Scene’: _tempPickingRay, _cachedRayForTransform, _pickWithRayInverseMatrix, _internalPick, and 554 more

// create a basic BJS Scene object
this._scene = new BABYLON.Scene(this._engine);
//set the background color
this._scene = new BABYLON.Color4(0,0,0,0);

I’m not sure what’s up. Trying to get my education on babylon

Thanks in advance.

scene is not a color element, but its property clearColor :wink:
this._scene.clearColor = new BABYLON.Color4(0,0,0,0);

1 Like

yes, thank you. Couldn’t see the forest between the trees

1 Like