docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SunAngleRandomizer

    Randomizes the rotation of directional lights tagged with a SunAngleRandomizerTag

    Inheritance
    object
    Randomizer
    SunAngleRandomizer
    Inherited Members
    Randomizer.enabled
    Randomizer.scenario
    Randomizer.tagManager
    Randomizer.OnCreate()
    Randomizer.OnIterationEnd()
    Randomizer.OnScenarioComplete()
    Randomizer.OnStartRunning()
    Randomizer.OnStopRunning()
    Randomizer.OnUpdate()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Perception.Randomization.Randomizers.SampleRandomizers
    Assembly: solution.dll
    Syntax
    [Serializable]
    [AddRandomizerMenu("Perception/Sun Angle Randomizer")]
    public class SunAngleRandomizer : Randomizer

    Fields

    Name Description
    dayOfTheYear

    The day of the year (0 being Jan 1st and 364 being December 31st)

    hour

    The hour of the day (0 to 24)

    latitude

    The earth's latitude (-90 is the south pole, 0 is the equator, and +90 is the north pole)

    Methods

    Name Description
    OnIterationStart()

    Randomizes the rotation of tagged directional lights at the start of each scenario iteration

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)