Class SunAngleRandomizer
Randomizes the rotation of directional lights tagged with a SunAngleRandomizerTag
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Randomizers.SampleRandomizers
Syntax
[Serializable]
[AddRandomizerMenu("Perception/Sun Angle Randomizer")]
public class SunAngleRandomizer : Randomizer
Fields
dayOfTheYear
The day of the year (0 being Jan 1st and 364 being December 31st)
Declaration
public FloatParameter dayOfTheYear
Field Value
Type | Description |
---|---|
FloatParameter |
hour
The hour of the day (0 to 24)
Declaration
public FloatParameter hour
Field Value
Type | Description |
---|---|
FloatParameter |
latitude
The earth's latitude (-90 is the south pole, 0 is the equator, and +90 is the north pole)
Declaration
public FloatParameter latitude
Field Value
Type | Description |
---|---|
FloatParameter |
Methods
OnIterationStart()
Randomizes the rotation of tagged directional lights at the start of each scenario iteration
Declaration
protected override void OnIterationStart()