Class SunAngleRandomizer | Perception | 0.5.0-preview.1
docs.unity3d.com
    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
    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()
    Overrides
    Randomizer.OnIterationStart()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023