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

  • blue number: 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

  • green number: Amount of green in the point light

SetIntensity(number intensity)

This action sets the intensity of the point light which affects brightness.

Parameters

  • intensity number: 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

SetPaletteIcon(Libraries.Game.Graphics.TextureRegion paletteIcon)

This action sets the texture to be used as an icon in a palette

Parameters

SetRed(number red)

This action sets the amount of red in the point light. 1.0 means full red.

Parameters

  • red number: Amount of red in the point light

Inherited Actions

20 actions from Libraries.Interface.Controls.Scenes.Blueprints.ItemBlueprint
3 actions from Libraries.Language.Object