Skip to main content

GameConfigUtils

Functions​

findMatchingAsset​

GameConfigUtils.findMatchingAsset(
config: Folder,
assetType: GameConfigAssetType,
assetKey: string,
assetId: number,
priority: number?
) → Instance?

Finds an asset in the config that matches the given type, key, id, and priority exactly

Show raw api
{
    "functions": [
        {
            "name": "findMatchingAsset",
            "desc": "Finds an asset in the config that matches the given type, key, id, and priority exactly",
            "params": [
                {
                    "name": "config",
                    "desc": "",
                    "lua_type": "Folder"
                },
                {
                    "name": "assetType",
                    "desc": "",
                    "lua_type": "GameConfigAssetType"
                },
                {
                    "name": "assetKey",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "assetId",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "priority",
                    "desc": "",
                    "lua_type": "number?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Instance?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 68,
                "path": "src/gameconfig/src/Shared/Config/Config/GameConfigUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "GameConfigUtils",
    "desc": "",
    "source": {
        "line": 5,
        "path": "src/gameconfig/src/Shared/Config/Config/GameConfigUtils.lua"
    }
}