EditorSpotLight

Package: Libraries.Interface.Controls.Scenes.Items · Inherits from: Libraries.Interface.Controls.Scenes.Items.EditorModel, Libraries.Game.Graphics.Model, Libraries.Game.Graphics.Light, Libraries.Interface.Item3D, Libraries.Interface.Item, Libraries.Language.Object, Libraries.Game.Graphics.SpotLight

EditorSpotLight is a spotlight added to a 3D scene in the scene editor. Like EditorPointLight, it is also a model, so the editor can select it, move it and turn it. Turning it aims its cone, which points down in the light's own space. The scene saves it as a "SpotLight".

Actions

CastsShadows()

Returns whether the light casts shadows. See SetCastsShadows.

Returns

boolean: True if the light casts shadows.

GetColor()

Returns the light's color.

Returns

Libraries.Game.Graphics.Color: The color

GetIntensity()

Returns how bright the light is.

Returns

number: The intensity

SetCastsShadows(boolean casts)

Sets whether the light casts shadows. Both Light and Model have this action; it is the light's, since the model is only what the editor selects and draws nothing.

Parameters

  • casts boolean: True for the light to cast shadows.

SetColor(Libraries.Game.Graphics.Color color)

Changes the light's color. The editor model has no shape loaded, so only the light's color is set.

Parameters

SetIntensity(number intensity)

Sets how bright the light is.

Parameters

  • intensity number: The intensity

Inherited Actions

5 actions from Libraries.Game.Graphics.Light
108 actions from Libraries.Game.Graphics.Model
13 actions from Libraries.Game.Graphics.SpotLight
10 actions from Libraries.Interface.Controls.Scenes.Items.EditorModel
60 actions from Libraries.Interface.Item
208 actions from Libraries.Interface.Item3D
3 actions from Libraries.Language.Object