LightingManager
This item only works when running on the client. Client
Manager module responsible for the functionality of Lighting Changers and other things generally related to lighting.
Functions
ChangeLighting
LightingManager:ChangeLighting(config: _TDefs.LightingConfiguration) → ()Types
interface LightingConfiguration {Type: stringConfiguration: Default | {[string]: any}TweenInfo: TweenInfo?UseDefault: string?SetDefault: string?}
Changes the active lighting based on the given config.
You can create a lighting preset by using SetDefault as a string parameter in a
lighting changer's config module. These can then be reused by using UseDefault
as a string parameter with the same value.
ResetLighting
LightingManager:ResetLighting() → ()Resets all lighting properties back to their default state.
DeregisterPreset
LightingManager:DeregisterPreset(preset: string) → ()
Removes the registered preset from the lighting template list.
Used when the client object folder unloads.