AcediaDocumentation

getcustomasset

Copies a workspace asset into the engine content path and returns its asset URI.

Use a file format the receiving Roblox property supports. The return value is an asset URI, not raw file contents. Paths stay inside the workspace; see Filesystem for the path rules.

getcustomasset(path: string): string

Parameters

ParameterTypeDescription
pathstringPath relative to the Acedia workspace.

Example

local function loadImage(path)
    local image = Instance.new("ImageLabel")
    image.Image = getcustomasset(path)
    return image
end

Aliases: getsynasset.

On this page