How to get ContentId from Content

I’m trying to apply an EditableImage to a Decal

workspace.Part.Decal.Texture = Content.fromObject(SourceTexture)

Unable to assign property Texture. ContentId expected, got Content

Try indexing the URI through Uri, maybe that would help?

Here’s Content documentation: Content | Documentation - Roblox Creator Hub

For people who haven’t found the answer. You must use the ImageContent property of the ImageLabel.

Like that:

local AssetService = game:GetService("AssetService")

local Image = Instance.new("ImageLabel") -- your ImageLabel...
local Canva = AssetService:CreateEditableImage()

-- link Image with EditableImage
Image.ImageContent = Content.fromObject(Canva)