PointLightBlueprint
Package: Libraries.Interface.Controls.Scenes.Blueprints · Inherits from: Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint, Libraries.Language.Object
The PointLightBleprint is a blueprint for an object in a 3D space that emits light. This class contains fields for the color and intensity of the light that will be visible in the scene when ran in a Game. In the editor this blueprint will create a preview model from a texture so the position of the light is easier to view.
Actions
GetBlue()
This action returns the amount of blue in the point light. 1.0 means full blue.
Returns
number: Amount of blue in the point light
GetGreen()
This action returns the amount of green in the point light. 1.0 means full green.
Returns
number: Amount of green in the point light
GetIntensity()
This action returns the intensity of the point light which affects brightness.
Returns
number: The intensity of point light
GetModelTexture()
This action returns the texture to be used as on the model visible only in the editor
Returns
Libraries.Game.Graphics.Texture: A texture for the model in the editor
GetPaletteIcon()
This action returns the texture to be used as an icon in a palette
Returns
Libraries.Game.Graphics.TextureRegion: A texture for an icon for this model
GetRed()
This action returns the amount of red in the point light. 1.0 means full red.
Returns
number: Amount of red in the point light
SetBlue(number blue)
This action sets the amount of blue in the point light. 1.0 means full blue.
Parameters
bluenumber: Amount of blue in the point light
SetGreen(number green)
This action sets the amount of green in the point light. 1.0 means full green.
Parameters
greennumber: Amount of green in the point light
SetIntensity(number intensity)
This action sets the intensity of the point light which affects brightness.
Parameters
intensitynumber: The intensity of point light
SetModelTexture(Libraries.Game.Graphics.Texture modelTexture)
This action sets the texture to be used as on the model visible only in the editor
Parameters
modelTextureLibraries.Game.Graphics.Texture: A texture for the editor model
SetPaletteIcon(Libraries.Game.Graphics.TextureRegion paletteIcon)
This action sets the texture to be used as an icon in a palette
Parameters
paletteIconLibraries.Game.Graphics.TextureRegion: An icon texture for this model
SetRed(number red)
This action sets the amount of red in the point light. 1.0 means full red.
Parameters
rednumber: Amount of red in the point light
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)