Skip to content

Commit 8f8e0cf

Browse files
committed
api: Add SetRange().
1 parent 5285820 commit 8f8e0cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Runtime/LightConverter.cs

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public void SetShadow(Light light, bool enabled, bool isDynamic, float nearPlane
5050
// light.shadows = enabled ? LightShadows.Soft : LightShadows.None;
5151
// light.shadowNearPlane = nearPlane;
5252
}
53+
public void SetRange(Light light, float range)
54+
{
55+
light.range = range;
56+
}
5357

5458
public void SetIntensity(Light light, float intensityLumen)
5559
{

0 commit comments

Comments
 (0)