Light
Last updated
Last updated
Access information about a Unity light.
Inputs:
Light In
Light
Reference to a light object.
Outputs:
Range Out
Float
The range of the light.
Color Out
Color
The color of the light.
Intensity Out
Float
The brightness of the light. The default value for a Directional light is 0.5. The default value for a Point, Spot or Area (Rectangle or Disc) light is 1.
Game Object
Game Object
Reference to the game object of which the light is a component.
There are multiple nodes that you can use to set the properties of a Light. For more information refer to the Lights page in the Unity documentation.
The set nodes for a Light have a similar arrangement of inputs and outputs, as described in the following sections.
Inputs:
Enter
Flow
Flow to activate the node.
Light In
Light
Reference to a Light.
<property>
<varies> [editable]
The value to set for the chosen property.
Outputs:
Exit
Flow
Continue the activating flow.
Available nodes:
Set Light Color
Color
Sets the color of the light.
Set Light Intensity
Float
Sets the brightness of the light.
Set Light Range
Float
Set the range of the light.
Set Light Render Mode
[parameter list]
Set a render mode from the following options: Auto, Force Pixel, or Force Vertex.
Set Light Type
[parameter list]
Sets the type of light. Spot, Directional, Point, Area, Rectangle, or Disc.