File systemOverview
getcustomasset
Local asset integration API.
Details#
Converts a local workspace asset path into a content identifier usable by supported UI properties. It does not return file bytes or upload the asset. The file must exist and contain a supported media format.
Examples#
Example
local path = "docs-local-image.png"
if isfile(path) then
local image = Instance.new("ImageLabel")
image.Image = getcustomasset(path)
print(image.Image)
image:Destroy()
end