LightingController
Controls the lighting in the game.
Functions
LoadSave
LightingController:LoadSave(save: Configuration,--
The Configuration object that holds all the properties of the lighting as attributes.
transitionTime: number?--
The time it takes to transition to the new lighting.
) → ()
Loads a lighting save given a Configuration object that holds all the
properties of the lighting as attributes. This will also load any children
of the Configuration object that apply to the LightingChild type.
LoadDefault
LightingController:LoadDefault(transitionTime: number?--
The time it takes to transition from the current lighting settings to the default lighting settings.
) → ()Used to load in the default lighting settings. These default settings are set by either having a LightingSave named DefaultLighting under Lighting or is automatically created at runtime.
ReturnToPrevious
LightingController:ReturnToPrevious(transitionTime: number?--
The time it takes to transition from the current lighting settings to the previous lighting settings.
) → ()Returns to the previous lighting settings that were active before the last call to LoadSave.
GetAppliedFilters
LightingController:GetAppliedFilters() → {string}--
An array of the currently applied filter names.
Returns an array of the currently applied filters in stack order.
IsFilterApplied
LightingController:IsFilterApplied(filterName: string--
The name of the filter to check.
) → boolean--
Whether or not the filter is currently applied.
Checks if a filter is currently applied.
ApplyFilter
LightingController:ApplyFilter(filterName: string,--
The name of the filter to apply.
duration: number?--
The time it takes to transition to the new filter settings.
) → ()Applies a filter to the current lighting settings by pushing it onto the filter stack. The cumulative state is recomputed with all filters.
RemoveFilter
LightingController:RemoveFilter(filterName: string,--
The name of the filter to remove.
duration: number?--
The time it takes to transition after removing the filter.
) → ()Removes a filter from the filter stack by name and recomputes the cumulative state.
PopFilter
LightingController:PopFilter(duration: number?--
The time it takes to transition after popping the filter.
) → string?--
The name of the removed filter, or nil if the stack was empty.
Removes the most recently applied filter from the stack.
ResetCurrentProfile
LightingController:ResetCurrentProfile(duration: number?--
The time it takes to transition to the reset lighting settings.
) → ()Resets the current lighting settings to the last loaded lighting save. This will also clear any applied filters from the stack.
ClearFilters
LightingController:ClearFilters(duration: number?--
The time it takes to transition after clearing filters.
) → ()Clears all filters from the stack without resetting the lighting profile.