Apprendre
Classe de moteur
Sky

*Ce contenu est traduit en utilisant l'IA (Beta) et peut contenir des erreurs. Pour consulter cette page en anglais, clique ici.



Référence API
Propriétés
CelestialBodiesShown
Lecture parallèle
Capacités : Environment
Sky.CelestialBodiesShown:boolean

MoonAngularSize
Lecture parallèle
Capacités : Environment
Sky.MoonAngularSize:number

MoonTextureContent
Lecture parallèle
Capacités : Environment
Sky.MoonTextureContent:Content

MoonTextureId
Lecture parallèle
Capacités : Environment
Sky.MoonTextureId:ContentId

SkyboxBackContent
Lecture parallèle
Capacités : Environment
Sky.SkyboxBackContent:Content

SkyboxBk
Lecture parallèle
Capacités : Environment
Sky.SkyboxBk:ContentId

SkyboxDn
Lecture parallèle
Capacités : Environment
Sky.SkyboxDn:ContentId

SkyboxDownContent
Lecture parallèle
Capacités : Environment
Sky.SkyboxDownContent:Content

SkyboxFrontContent
Lecture parallèle
Capacités : Environment
Sky.SkyboxFrontContent:Content

SkyboxFt
Lecture parallèle
Capacités : Environment
Sky.SkyboxFt:ContentId

SkyboxLeftContent
Lecture parallèle
Capacités : Environment
Sky.SkyboxLeftContent:Content

SkyboxLf
Lecture parallèle
Capacités : Environment
Sky.SkyboxLf:ContentId

SkyboxOrientation
Lecture parallèle
Capacités : Environment
Sky.SkyboxOrientation:Vector3
Échantillons de code
Orientation de Skybox avec Tween
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local sky = Lighting:FindFirstChild("Sky")
local ROTATION_SPEED = 4 -- En degrés par seconde
local MAX_TILT = 2 -- En degrés
local TILT_SPEED = 4
local currentTilt = Instance.new("NumberValue")
currentTilt.Value = -MAX_TILT
local tweenGoal = { Value = MAX_TILT }
local tweenInfo = TweenInfo.new(TILT_SPEED, Enum.EasingStyle.Cubic, Enum.EasingDirection.InOut, -1, true)
local tween = TweenService:Create(currentTilt, tweenInfo, tweenGoal)
tween:Play()
RunService.Heartbeat:Connect(function(deltaTime)
sky.SkyboxOrientation =
Vector3.new(currentTilt.Value, (sky.SkyboxOrientation.Y + ROTATION_SPEED * deltaTime) % 360, 0)
end)

SkyboxRightContent
Lecture parallèle
Capacités : Environment
Sky.SkyboxRightContent:Content

SkyboxRt
Lecture parallèle
Capacités : Environment
Sky.SkyboxRt:ContentId

SkyboxUp
Lecture parallèle
Capacités : Environment
Sky.SkyboxUp:ContentId

SkyboxUpContent
Lecture parallèle
Capacités : Environment
Sky.SkyboxUpContent:Content

StarCount
Lecture parallèle
Capacités : Environment
Sky.StarCount:number

SunAngularSize
Lecture parallèle
Capacités : Environment
Sky.SunAngularSize:number

SunTextureContent
Lecture parallèle
Capacités : Environment
Sky.SunTextureContent:Content

SunTextureId
Lecture parallèle
Capacités : Environment
Sky.SunTextureId:ContentId

©2026 Société Roblox. Roblox, le logo Roblox et Powering Imagination font partie de nos marques déposées aux États-Unis et dans d'autres pays.