Backgroundcomponent

BackgroundComponent class

The background component is used to set the background of the game. You can set the background appareance from the studio.

At runtime right now you can only change the color of the background, but we plan to add more options in the future.

Bakckground is a singleton, so you can only have one background in the game.

Signature:

export declare class BackgroundComponent extends Component3D 

Extends: Component3D

Methods

MethodModifiersDescription
setColor(val)Change the background to a color