mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
19 lines
494 B
C#
19 lines
494 B
C#
using AssetRipper.SourceGenerated.Subclasses.LightsModule;
|
|
|
|
namespace AssetRipper.SourceGenerated.Extensions
|
|
{
|
|
public static class LightsModuleExtensions
|
|
{
|
|
public static void SetToDefault(this ILightsModule module, UnityVersion version)
|
|
{
|
|
module.RandomDistribution = true;
|
|
module.Color = true;
|
|
module.Range = true;
|
|
module.Intensity = true;
|
|
module.RangeCurve.SetValues(version, 1.0f);
|
|
module.IntensityCurve.SetValues(version, 1.0f);
|
|
module.MaxLights = 20;
|
|
}
|
|
}
|
|
}
|