Skip to main content

lightingUtil

A simple utility for working with Lighting.

Functions

setSky

lightingUtil.setSky(skySky) → ()

Sets the sky of Lighting by first destroying all Sky objects in it and then cloning sky into it.

Show raw api
{
    "functions": [
        {
            "name": "setSky",
            "desc": "Sets the sky of [Lighting](https://create.roblox.com/docs/reference/engine/classes/Lighting)\nby first destroying all [Sky](https://create.roblox.com/docs/reference/engine/classes/Sky) objects in it and then cloning `sky` into it.",
            "params": [
                {
                    "name": "sky",
                    "desc": "",
                    "lua_type": "Sky"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 15,
                "path": "src/lightingUtil/init.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "lightingUtil",
    "desc": " \n\nA simple utility for working with [Lighting](https://create.roblox.com/docs/reference/engine/classes/Lighting).",
    "source": {
        "line": 6,
        "path": "src/lightingUtil/init.luau"
    }
}