ShirtGraphic
Applies a texture to the front surface of a character's torso, used to display t-shirts.
Memory category | Instances |
---|
Member index 2
Description
The ShirtGraphic object applies a texture to the front surface of a character's torso. It is used to display t-shirts.
History 9
- 645 Change ValueType of Graphic from Content to ContentId
- 553 Change Default of Color3 from to Color3(1, 1, 1)
- 486 Change ThreadSafety of Graphic from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Color3 from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Graphic from to ReadOnly
- 462 Change ThreadSafety of Color3 from to ReadOnly
- 367 Add Color3
- 47 Add Graphic
- 47 Add ShirtGraphic
Members 2
Color3
Type | Default | |
---|---|---|
Color3 | 1, 1, 1 |
This property determines the colorization to be applied to the ShirtGraphic texture. It functions similarly to ImageLabel.ImageColor3 except that it is applied to ShirtGraphic textures. This is useful for creating shirt graphics that have many different color variations but share the same basic look.
See also:
- Clothing.Color3 which determines the colorization to be applied to the Clothing texture
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
Graphic
Type | Default | |
---|---|---|
ContentId |
The content ID link pointing to the ShirtGraphic texture hosted on the Roblox website. This property sets the texture associated with a t-shirt.
Finding the ID
This content ID is different than the website URL of the t-shirt. It can be found by pasting the website URL of the t-shirt into the Graphic property of the ShirtGraphic in Roblox Studio, as Studio will correct it. Alternatively InsertService:LoadAsset() can be used to insert the t-shirt into the workspace, for example:
local webURL = "https://www.roblox.com/catalog/2591161/Sword-Fight-on-the-Heights-Ring-of-Fire-T-Shirt"
local assetId = tonumber(string.match(webURL, "%d+") or 0) -- Extract the number
local success, model = pcall(function()
return game:GetService("InsertService"):LoadAsset(assetId)
end)
if success then
model.Parent = workspace
end
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |