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.enabledStateCanBeSwitchedByUser
    Randomizer.scenario
    Randomizer.tagManager
    Randomizer.Query<T>()
    Randomizer.OnCreate()
    Randomizer.OnAwake()
    Randomizer.OnEnable()
    Randomizer.OnDisable()
    Randomizer.OnScenarioStart()
    Randomizer.OnScenarioComplete()
    Randomizer.OnIterationEnd()
    Randomizer.OnStartRunning()
    Randomizer.OnStopRunning()
    Randomizer.OnUpdate()
    Randomizer.OnDestroy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.Randomization.Randomizers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [Serializable]
    [AddRandomizerMenu("Perception/Sun Angle Randomizer")]
    [MovedFrom("UnityEngine.Perception.Randomization.Randomizers.SampleRandomizers")]
    public class SunAngleRandomizer : Randomizer

    Fields

    dayOfTheYear

    The range of days in a year with 0 being Jan 1st and 364 being December 31st (default is 0 to 364)

    Declaration
    [Tooltip("The range of days in a year with 0 being Jan 1st and 364 being December 31st (default is 0 to 364).")]
    public FloatParameter dayOfTheYear
    Field Value
    Type Description
    FloatParameter

    hour

    The range of hours in a day (default is 0 to 24)

    Declaration
    [Tooltip("The range of hours in a day (default is 0 to 24).")]
    public FloatParameter hour
    Field Value
    Type Description
    FloatParameter

    latitude

    The range of latitudes. A latitude of -90 is the south pole, 0 is the equator, and +90 is the north pole (default is -90 to 90).

    Declaration
    [Tooltip("The range of latitudes. A latitude of -90 is the south pole, 0 is the equator, and +90 is the north pole (default is -90 to 90).")]
    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()
    Overrides
    Randomizer.OnIterationStart()
    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)