Lens Studio v1.0.0+
Inherits from Component
Acts as a source of light in the scene. See the Light and Shadows guide for more information about lighting.
If enabled, the LightSource will be automatically positioned based on its orientation relative to any shadow casting meshes in the scene.
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.
A value used to increase the intensity of light information derived from the
Controls the amount of rotation applied to the
The strength of the light on a scale of 0.0 – 1.0.
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.
Enable 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.
If disabled, the Component will stop enacting its behavior.
// Sets the intensity of a light source //@input Component.LightSource lightSource script.lightSource.intensity = 0.0;
Still Looking for help?Visit Support