SpotLightBlueprint
Package: Libraries.Interface.Controls.Scenes.Blueprints · Inherits from: Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint, Libraries.Language.Object
The SpotLightBlueprint is a blueprint for a spotlight in a 3D scene: a light that shines in a cone, like a stage light or a flashlight. It holds the light's color, intensity and cone. In the editor, the spotlight is shown by a small textured box, so its place is easy to see; turning it aims the cone, which starts pointing straight down.
Actions
GetBlue()
This action returns the amount of blue in the light, from 0 to 1.
Returns
number: The blue
GetGreen()
This action returns the amount of green in the light, from 0 to 1.
Returns
number: The green
GetInnerAngle()
This action returns the cone's half-angle of full strength, in degrees.
Returns
number: The inner angle
GetIntensity()
This action returns how bright the light is.
Returns
number: The intensity
GetModelTexture()
This action returns the texture on the box that shows the spotlight in the editor.
Returns
Libraries.Game.Graphics.Texture: The texture
GetOuterAngle()
This action returns the cone's half-angle where the light ends, in degrees.
Returns
number: The outer angle
GetPaletteIcon()
This action returns the texture used as the spotlight's icon in a palette.
Returns
Libraries.Game.Graphics.TextureRegion: The icon
GetRed()
This action returns the amount of red in the light, from 0 to 1.
Returns
number: The red
SetBlue(number blue)
This action sets the amount of blue in the light, from 0 to 1.
Parameters
bluenumber: The blue
SetConeAngles(number inner, number outer)
This action sets the cone's half-angles, in degrees: full strength inside the inner one, fading to nothing at the outer one.
Parameters
innernumber: The inner angleouternumber: The outer angle
SetGreen(number green)
This action sets the amount of green in the light, from 0 to 1.
Parameters
greennumber: The green
SetIntensity(number intensity)
This action sets how bright the light is.
Parameters
intensitynumber: The intensity
SetModelTexture(Libraries.Game.Graphics.Texture modelTexture)
This action sets the texture on the box that shows the spotlight in the editor.
Parameters
modelTextureLibraries.Game.Graphics.Texture: The texture
SetPaletteIcon(Libraries.Game.Graphics.TextureRegion paletteIcon)
This action sets the texture used as the spotlight's icon in a palette.
Parameters
paletteIconLibraries.Game.Graphics.TextureRegion: The icon
SetRed(number red)
This action sets the amount of red in the light, from 0 to 1.
Parameters
rednumber: The red
Inherited Actions
20 actions from Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint
- GetDescription()
- GetDrawnBottom()
- GetDrawnLeft()
- GetDrawnRight()
- GetDrawnTop()
- GetName()
- GetPaletteCrop()
- GetPaletteIconFile()
- GetPaletteScale()
- GetResponsiveness()
- HasDrawnRegion()
- IsPhysicsEnabled()
- SetDescription(text description)
- SetDrawnRegion(number left, number top, number right, number bottom)
- SetName(text name)
- SetPaletteCrop(number paletteCrop)
- SetPaletteIconFile(Libraries.System.File file)
- SetPaletteScale(number paletteScale)
- SetPhysicsEnabled(boolean enabled)
- SetResponsiveness(integer responsive)