s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamsvoting

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

Voting is open. Play the entries and pick the winner.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Api
Components
Light
chevron_left Components
class
Light

Constructors

lockLight

Properties

data_objectContributiondata_objectFogModedata_objectFogStrengthdata_objectLightColordata_objectShadowBiasdata_objectShadowHardnessdata_objectShadows

Methods

lockCreateSceneObjectlockOnAwakelockOnDisabledlockOnEnabledlockOnTagsChanged
Light
class Sandbox .account_tree extends Component
abstractSandbox.Engine

build Constructors 1

Light ()

data_object Properties 7

Contribution
LightContribution
Which lighting terms this light is allowed to contribute to. For example, turn off Sandbox.Light.LightContribution.Specular to stop a light producing highlights.
FogMode
FogInfluence
FogStrength
float
LightColor
Color
The main color of the light
ShadowBias
float
ShadowHardness
float
Shadows
bool
Should this light cast shadows?

functions Methods 5

CreateSceneObject ()
SceneLight
OnAwake ()
OnDisabled ()
OnEnabled ()
OnTagsChanged ()
Tags have been updated - lets update our light's tags

Inheritance

Component
Light
DirectionalLight
PointLight
SpotLight
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter