Engine

Sky

Show Deprecated

The Sky object is an object that, when placed inside Lighting, will change the appearance of the game's sky. This allows for a custom sky to be used as opposed to the Roblox default sky. The Skybox is composed of six sides, much like that of a cube. If the skybox is changed/customized, the Sun and other objects in the sky will remain visible, unless you turn off the Sky object's Sky.CelestialBodiesShown property, which will remove the Sun, Moon, and stars from the sky. The recommended picture dimensions for a Skybox side are 256x256 pixels. By adjusting the Sky.StarCount property of the Sky object, you can change how many stars will appear in the sky at night.

Summary

Properties

  • Sets whether the Sun, Moon, and stars will show.

  • read parallel

    The perceived angular size of the moon while using this skybox, in degrees.

  • read parallel

    The texture of the moon while using this skybox.

  • read parallel

    The URL link to a picture for the back surface of the sky.

  • read parallel

    The URL asset link to a picture for the Bottom surface of the sky.

  • read parallel

    The URL link to a picture for the front surface of the skybox.

  • read parallel

    The URL link to a picture for the left surface of the sky.

  • read parallel

    The URL link to a picture for the right surface of the sky.

  • read parallel

    The URL link to a picture for the top surface of the sky.

  • read parallel

    How many stars are shown in the skybox.

  • read parallel

    The perceived angular size of the sun while using this skybox, in degrees.

  • read parallel

    The texture of the sun while using this skybox.

Properties

CelestialBodiesShown

read parallel

Sets whether the Sun, Moon, and stars will show.

MoonAngularSize

read parallel

The perceived angular size of the moon while using this skybox, in degrees.

MoonTextureId

read parallel

The texture of the moon while using this skybox.

SkyboxBk

read parallel

The URL link to a picture for the back surface of the sky.

SkyboxDn

read parallel

The URL asset link to a picture for the Bottom surface of the sky.

SkyboxFt

read parallel

The URL link to a picture for the front surface of the skybox.

SkyboxLf

read parallel

The URL link to a picture for the left surface of the sky.

SkyboxRt

read parallel

The URL link to a picture for the right surface of the sky.

SkyboxUp

read parallel

The URL link to a picture for the top surface of the sky.

StarCount

read parallel

How many stars are shown in the skybox. Note that too many stars may cause severe lag. Only works if Sky.CelestialBodiesShown is true.

SunAngularSize

read parallel

The perceived angular size of the sun while using this skybox, in degrees.

SunTextureId

read parallel

The texture of the sun while using this skybox.

Methods

Events