Skip to content

Change Background Color

Change Background Color

Sets the background color of the current scene, visible behind all map layers and visual elements.

Properties

System

Name Explanation Type
Background Color The background color of the current scene. Color

Examples

Set Background Color to Black

Changes the scene background color to solid black.

change_background_color(#000000);
{"Data":{"BackgroundColor":"#000000","Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeBackgroundColorCommand"}

Set Background Color to White

Changes the scene background color to solid white.

change_background_color(#FFFFFF);
{"Data":{"BackgroundColor":"#FFFFFF","Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeBackgroundColorCommand"}

Set Background Color with Full Alpha

Changes the scene background color to a dark blue with full opacity.

change_background_color(#FF000040);
{"Data":{"BackgroundColor":"#FF000040","Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.ChangeBackgroundColorCommand"}