Method GetForLight
GetForLight(Light)
Retrieve a Volumetric Realtime Light
component attached to a Light object.
Generally faster than regular GetComponent()
public static VolumetricRealtimeLight GetForLight(Light light)
Parameters
light
LightThe Light object.
Returns
- VolumetricRealtimeLight
The Volumetric Realtime Light component, null if not attached.