Protected
constructorIf enabled, the LightSource will be automatically positioned based on its orientation relative to any shadow casting meshes in the scene.
If enabled, shadowFrustumSize
will be automatically updated based on its orientation relative to any shadow casting meshes in the scene.
If enabled, the LightSource will be able to cast shadows.
The color of the light.
A color image applied to an imaginary skybox the LightSource will use for color information.
If disabled, the Component will stop enacting its behavior.
A value used to increase the intensity of light information derived from the diffuseEnvmapTexture
exponentially.
Controls the amount of rotation applied to the diffuseEnvmapTexture
.
The strength of the light on a scale of 0.0 1.0.
The type of light emitted from this light source.
The set of layers this LightSource will affect.
Readonly
sceneThe scene object this component is on.
Controls the blurring size used when casting shadows from this LightSource.
Controls the color used when casting shadows from this LightSource.
The lightness and darkness value of the shadow cast by objects from this light source.
The maximum distance at which shadows will be calculated for this LightSource.
The minimum distance at which shadows will be calculated for this LightSource.
The simulated distance of the light source from objects to calculate the softness of the shadow.
A color image applied to an imaginary skybox the light source will use for specular and reflection information.
Readonly
uniqueEnable if you would like the LightSource to use information from the diffuseEnvmapTexture
for light color information.
Destroys the component.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other
. Useful for checking if two references point to the same thing.
Acts as a source of light in the scene.
See
Light and Shadows guide.
Example