API ReferenceSandbox
Lightclass
Constructors1
Showing 1 constructors
protected Light()
No results match this filter.
Methods5
Showing 5 methods
protected virtual Sandbox.SceneLight CreateSceneObject()
protected virtual void OnAwake()
Returns:
void—protected virtual void OnDisabled()
Returns:
void—protected virtual void OnEnabled()
Returns:
void—protected virtual void OnTagsChanged()
Tags have been updated - lets update our light's tags
Returns:
void—No results match this filter.
Properties7
Showing 7 properties
public Sandbox.Light.LightContribution Sandbox.Light.Contribution { get; set; }
Which lighting terms this light is allowed to contribute to. For example, turn off `Sandbox.Light.LightContribution.Specular` to stop a light producing highlights.
public Sandbox.Light.FogInfluence Sandbox.Light.FogMode { get; set; }
public float Sandbox.Light.FogStrength { get; set; }
Returns:
float—public float Sandbox.Light.ShadowBias { get; set; }
Returns:
float—public float Sandbox.Light.ShadowHardness { get; set; }
Returns:
float—public bool Sandbox.Light.Shadows { get; set; }
Should this light cast shadows?
Returns:
bool—No results match this filter.