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): stringParameters
| Parameter | Type | Description |
|---|---|---|
path | string | Path relative to the Acedia workspace. |
Example
local function loadImage(path)
local image = Instance.new("ImageLabel")
image.Image = getcustomasset(path)
return image
endAliases: getsynasset.
