Lightingクラス
ひとことで言うと
ゲームの世界の明るさ・時刻・空の色などを決めるサービスです。
公式の説明(英語):The Lighting service controls global lighting in an experience. It includes a range of adjustable properties that you can use to change how lighting appears and interacts with other objects.
クラスの関係
プロパティ(19)
| 名前と書き方 | 説明 |
|---|---|
AmbientLighting.Ambient: Color3 | 影の部分の色。The lighting hue applied to areas that are occluded from the sky, such as indoor areas. |
BrightnessLighting.Brightness: float | 明るさ。The intensity of illumination in the place. |
ClockTimeLighting.ClockTime: float | ゲームの中の時刻(0〜24)。A numerical representation (in hours) of the current time of day used by Lighting. |
ColorShift_BottomLighting.ColorShift_Bottom: Color3 | The hue represented in light reflected in the opposite surfaces to those facing the sun or moon. |
ColorShift_TopLighting.ColorShift_Top: Color3 | The hue represented in light reflected from surfaces facing the sun or moon. |
EnvironmentDiffuseScaleLighting.EnvironmentDiffuseScale: float | Ambient light that is derived from the environment. |
EnvironmentSpecularScaleLighting.EnvironmentSpecularScale: float | Specular light derived from environment. |
ExposureCompensationLighting.ExposureCompensation: float | The exposure compensation value. |
ExtendLightRangeTo120Lighting.ExtendLightRangeTo120: RolloutState | Unused. Light Class.PointLight.Range|Range is always clamped to 120 studs. |
FogColorLighting.FogColor: Color3 | A Color3 value giving the hue of Lighting fog. |
FogEndLighting.FogEnd: float | 霧が完全に濃くなる距離。The depth from the Workspace.CurrentCamera, in studs, at which fog will be completely opaque. |
FogStartLighting.FogStart: float | The depth from the Workspace.CurrentCamera, in studs, at which fog begins to show. |
GeographicLatitudeLighting.GeographicLatitude: float | The geographic latitude, in degrees, of the scene, influencing the result of Lighting time on the position of the sun and moon. |
GlobalShadowsLighting.GlobalShadows: boolean | Toggles voxel-based dynamic lighting for the place. |
LightingStyleLighting.LightingStyle: LightingStyle | The artistic intent behind lighting in the experience. |
OutdoorAmbientLighting.OutdoorAmbient: Color3 | The lighting hue applied to outdoor areas. |
PrioritizeLightingQualityLighting.PrioritizeLightingQuality: boolean | Indicates whether you prefer lighting/shading quality or view distance to scale down first. |
ShadowSoftnessLighting.ShadowSoftness: float | Controls how blurry the shadows are. |
TimeOfDayLighting.TimeOfDay: string | A 24-hour string representation of the current time of day used by Lighting. |
メソッド(4)
| 名前と書き方 | 説明 |
|---|---|
GetMinutesAfterMidnightLighting:GetMinutesAfterMidnight(): double | Returns the number of minutes that have passed after midnight for the purposes of lighting. |
GetMoonDirectionLighting:GetMoonDirection(): Vector3 | Returns a Vector3 representing the direction of the moon. |
GetSunDirectionLighting:GetSunDirection(): Vector3 | Returns a Vector3 representing the direction of the sun. |
SetMinutesAfterMidnightLighting:SetMinutesAfterMidnight(minutes: double): () | Sets Class.Lighting.TimeOfDay|TimeOfDay and Class.Lighting.ClockTime|ClockTime to the given number of minutes after midnight. |
イベント(1)
| 名前と書き方 | 説明 |
|---|---|
LightingChangedLighting.LightingChanged(skyChanged: boolean) | This event fires when a Lighting property is changed or a Sky is added or removed from Lighting. |
受け継いでいるメンバー
Instance から受け継いでいるもの(46)
Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged
Object から受け継いでいるもの(4)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(Lighting)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。