SpotLightPreview

Package: Libraries.Interface.Controls.Scenes.Items.Previews · Inherits from: Libraries.Interface.Controls.Scenes.Items.EditorItem3D, Libraries.Interface.Controls.Scenes.Items.Previews.ItemPreview, Libraries.Interface.Controls.Scenes.Items.EditorModel, Libraries.Game.Graphics.Model, Libraries.Interface.Controls.Scenes.Items.EditorItem, Libraries.Interface.Item, Libraries.Interface.Item3D, Libraries.Language.Object, Libraries.Interface.Controls.Scenes.Items.Previews.ItemPreview3D

The SpotLightPreview is a spotlight being placed in the scene editor, shown as a small textured box at the cursor, as a point light's is. Placing it makes an EditorSpotLight with the blueprint's color, intensity and cone.

Actions

ConvertToModel()

Returns the spotlight this preview places: an EditorSpotLight with the blueprint's color, intensity and cone, pointing down.

Returns

Libraries.Game.Graphics.Model: The spotlight

GetIntensity()

Returns how bright the light will be.

Returns

number: The intensity

Load(Libraries.Interface.Controls.Scenes.SceneEditor controller, Libraries.Interface.Controls.Scenes.Blueprints.SpotLightBlueprint schematic)

Loads the box, colored like the light, at the cursor.

Parameters

SetIntensity(number intensity)

Sets how bright the light will be.

Parameters

  • intensity number: The intensity

Inherited Actions

112 actions from Libraries.Game.Graphics.Model
16 actions from Libraries.Interface.Controls.Scenes.Items.EditorItem
1 action from Libraries.Interface.Controls.Scenes.Items.EditorItem3D
10 actions from Libraries.Interface.Controls.Scenes.Items.EditorModel
3 actions from Libraries.Interface.Controls.Scenes.Items.Previews.ItemPreview
5 actions from Libraries.Interface.Controls.Scenes.Items.Previews.ItemPreview3D
60 actions from Libraries.Interface.Item
207 actions from Libraries.Interface.Item3D
3 actions from Libraries.Language.Object