Sky
Changes the default appearance of the experience's sky.
Memory category | Instances |
---|
Member index 13
Description
The Sky
object, when placed inside Lighting, changes the default
appearance of the experience's sky. This object's
skybox is composed of six sides, like a
cube. Rotation of the skybox can be changed through
SkyboxOrientation.
The skybox sun, moon, and other celestial objects remain visible unless you turn off the CelestialBodiesShown property. By adjusting the StarCount property, you can change how many stars appear in the sky at night.
This object can also be used as a cubemap for reflections in
ViewportFrames, in which case only the Sky
object's six‑side Skybox[…]
properties are used. For details, see
viewport frames.
History 58
- 671 Add SkyboxOrientation
- 645 Change ValueType of SunTextureId from Content to ContentId
- 645 Change ValueType of SkyboxUp from Content to ContentId
- 645 Change ValueType of SkyboxRt from Content to ContentId
- 645 Change ValueType of SkyboxLf from Content to ContentId
- 645 Change ValueType of SkyboxFt from Content to ContentId
- 645 Change ValueType of SkyboxDn from Content to ContentId
- 645 Change ValueType of SkyboxBk from Content to ContentId
- 645 Change ValueType of MoonTextureId from Content to ContentId
- 553 Change Default of SunTextureId from to ContentId(rbxasset://sky/sun.jpg)
- 553 Change Default of SunAngularSize from to 21
- 553 Change Default of StarCount from to 3000
- 553 Change Default of SkyboxUp from to ContentId(rbxasset://textures/sky/sky512_up.tex)
- 553 Change Default of SkyboxRt from to ContentId(rbxasset://textures/sky/sky512_rt.tex)
- 553 Change Default of SkyboxLf from to ContentId(rbxasset://textures/sky/sky512_lf.tex)
- 553 Change Default of SkyboxFt from to ContentId(rbxasset://textures/sky/sky512_ft.tex)
- 553 Change Default of SkyboxDn from to ContentId(rbxasset://textures/sky/sky512_dn.tex)
- 553 Change Default of SkyboxBk from to ContentId(rbxasset://textures/sky/sky512_bk.tex)
- 553 Change Default of MoonTextureId from to ContentId(rbxasset://sky/moon.jpg)
- 553 Change Default of MoonAngularSize from to 11
- 553 Change Default of CelestialBodiesShown from to true
- 486 Change ThreadSafety of SunTextureId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SunAngularSize from ReadOnly to ReadSafe
- 486 Change ThreadSafety of StarCount from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SkyboxUp from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SkyboxRt from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SkyboxLf from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SkyboxFt from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SkyboxDn from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SkyboxBk from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MoonTextureId from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MoonAngularSize from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CelestialBodiesShown from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SunTextureId from to ReadOnly
- 462 Change ThreadSafety of SunAngularSize from to ReadOnly
- 462 Change ThreadSafety of StarCount from to ReadOnly
- 462 Change ThreadSafety of SkyboxUp from to ReadOnly
- 462 Change ThreadSafety of SkyboxRt from to ReadOnly
- 462 Change ThreadSafety of SkyboxLf from to ReadOnly
- 462 Change ThreadSafety of SkyboxFt from to ReadOnly
- 462 Change ThreadSafety of SkyboxDn from to ReadOnly
- 462 Change ThreadSafety of SkyboxBk from to ReadOnly
- 462 Change ThreadSafety of MoonTextureId from to ReadOnly
- 462 Change ThreadSafety of MoonAngularSize from to ReadOnly
- 462 Change ThreadSafety of CelestialBodiesShown from to ReadOnly
- 303 Add SunTextureId
- 303 Add SunAngularSize
- 303 Add MoonTextureId
- 303 Add MoonAngularSize
- 47 Add StarCount
- 47 Add SkyboxUp
- 47 Add SkyboxRt
- 47 Add SkyboxLf
- 47 Add SkyboxFt
- 47 Add SkyboxDn
- 47 Add SkyboxBk
- 47 Add CelestialBodiesShown
- 47 Add Sky
Members 13
CelestialBodiesShown
Type | Default | |
---|---|---|
bool | true |
Sets whether the sun, moon, and stars will show.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 4
- 553 Change Default of CelestialBodiesShown from to true
- 486 Change ThreadSafety of CelestialBodiesShown from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CelestialBodiesShown from to ReadOnly
- 47 Add CelestialBodiesShown
MoonAngularSize
Type | Default | |
---|---|---|
float | 11 |
The perceived angular size of the moon while using this skybox, in degrees.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 4
- 553 Change Default of MoonAngularSize from to 11
- 486 Change ThreadSafety of MoonAngularSize from ReadOnly to ReadSafe
- 462 Change ThreadSafety of MoonAngularSize from to ReadOnly
- 303 Add MoonAngularSize
MoonTextureId
Type | Default | |
---|---|---|
ContentId | rbxasset://sky/moon.jpg |
The texture of the moon while using this skybox.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 5
- 645 Change ValueType of MoonTextureId from Content to ContentId
- 553 Change Default of MoonTextureId from to ContentId(rbxasset://sky/moon.jpg)
- 486 Change ThreadSafety of MoonTextureId from ReadOnly to ReadSafe
- 462 Change ThreadSafety of MoonTextureId from to ReadOnly
- 303 Add MoonTextureId
SkyboxBk
Type | Default | |
---|---|---|
ContentId | rbxasset://textures/sky/sky512_bk.tex |
The URL link to a picture for the back surface of the sky.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
SkyboxDn
Type | Default | |
---|---|---|
ContentId | rbxasset://textures/sky/sky512_dn.tex |
Asset ID for the bottom surface of the skybox.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
SkyboxFt
Type | Default | |
---|---|---|
ContentId | rbxasset://textures/sky/sky512_ft.tex |
Asset ID for the front surface of the skybox.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
SkyboxLf
Type | Default | |
---|---|---|
ContentId | rbxasset://textures/sky/sky512_lf.tex |
Asset ID for the left surface of the skybox.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
SkyboxOrientation
Type | Default | |
---|---|---|
Vector3 | 0, 0, 0 |
Changes the orientation of the skybox surfaces. This property takes a Vector3 of degree values in the typical XYZ order, but rotation is applied first around the Y axis, then X, and then Z to allow for predictable control over complex movements.
An easy way to script an orientation animation is to spin around the Y axis (keeping the horizon level), then tilt this axis by setting X and Z to a fixed value:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
See here for further info and limitations.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 1
- 671 Add SkyboxOrientation
SkyboxRt
Type | Default | |
---|---|---|
ContentId | rbxasset://textures/sky/sky512_rt.tex |
Asset ID for the right surface of the skybox.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
SkyboxUp
Type | Default | |
---|---|---|
ContentId | rbxasset://textures/sky/sky512_up.tex |
Asset ID for the top surface of the skybox.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
StarCount
Type | Default | |
---|---|---|
int | 3000 |
How many stars are shown in the skybox. Only works if
CelestialBodiesShown is true
.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
SunAngularSize
Type | Default | |
---|---|---|
float | 21 |
The perceived angular size of the sun while using this skybox, in degrees.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 4
- 553 Change Default of SunAngularSize from to 21
- 486 Change ThreadSafety of SunAngularSize from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SunAngularSize from to ReadOnly
- 303 Add SunAngularSize
SunTextureId
Type | Default | |
---|---|---|
ContentId | rbxasset://sky/sun.jpg |
The texture of the sun while using this skybox.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
History 5
- 645 Change ValueType of SunTextureId from Content to ContentId
- 553 Change Default of SunTextureId from to ContentId(rbxasset://sky/sun.jpg)
- 486 Change ThreadSafety of SunTextureId from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SunTextureId from to ReadOnly
- 303 Add SunTextureId