Search Results for

    Show / Hide Table of Contents

    Class DayNightCycle

    Manages the day-night cycle by transitioning between different sky and cloud sprites.

    Inheritance
    object
    DayNightCycle
    Namespace: Game
    Assembly: cs.temp.dll.dll
    Syntax
    public class DayNightCycle : MonoBehaviour

    Fields

    cycleDuration

    Duration of each phase (day, evening, night) before transitioning to the next phase.

    Declaration
    public float cycleDuration
    Field Value
    Type Description
    float

    dayBackClouds

    Sprite representing the back clouds during the day.

    Declaration
    public SpriteRenderer dayBackClouds
    Field Value
    Type Description
    SpriteRenderer

    dayFrontClouds

    Sprite representing the front clouds during the day.

    Declaration
    public SpriteRenderer dayFrontClouds
    Field Value
    Type Description
    SpriteRenderer

    daySky

    Sprite representing the sky during the day.

    Declaration
    public SpriteRenderer daySky
    Field Value
    Type Description
    SpriteRenderer

    eveningBackClouds

    Sprite representing the back clouds during the evening.

    Declaration
    public SpriteRenderer eveningBackClouds
    Field Value
    Type Description
    SpriteRenderer

    eveningFrontClouds

    Sprite representing the front clouds during the evening.

    Declaration
    public SpriteRenderer eveningFrontClouds
    Field Value
    Type Description
    SpriteRenderer

    eveningSky

    Sprite representing the sky during the evening.

    Declaration
    public SpriteRenderer eveningSky
    Field Value
    Type Description
    SpriteRenderer

    nightBackClouds

    Sprite representing the back clouds during the night.

    Declaration
    public SpriteRenderer nightBackClouds
    Field Value
    Type Description
    SpriteRenderer

    nightFrontClouds

    Sprite representing the front clouds during the night.

    Declaration
    public SpriteRenderer nightFrontClouds
    Field Value
    Type Description
    SpriteRenderer

    nightSky

    Sprite representing the sky during the night.

    Declaration
    public SpriteRenderer nightSky
    Field Value
    Type Description
    SpriteRenderer

    transitionDuration

    Duration of the transition between different phases of the day-night cycle.

    Declaration
    public float transitionDuration
    Field Value
    Type Description
    float
    In This Article
    Back to top Example Unity documentation footer