rojo/.cursor/rules/roblox/reference/engine/classes/ShirtGraphic.yaml
2026-02-02 12:08:47 -06:00

99 lines
3.1 KiB
YAML

# This file is automatically generated. Please don't edit it manually.
# To submit a bug report on the content, see
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
name: ShirtGraphic
type: class
memory_category: Instances
summary: |
Applies a texture to the front surface of a character's torso, used to display
t-shirts.
description: |
The **ShirtGraphic** object applies a texture to the front surface of a
character's torso. It is used to display t-shirts.
code_samples: []
inherits:
- CharacterAppearance
descendants: []
tags: []
deprecation_message: ''
properties:
- name: ShirtGraphic.Color3
summary: |
Determines the colorization to be applied to the `Class.ShirtGraphic`
texture.
description: |
This property determines the colorization to be applied to the
`Class.ShirtGraphic` texture. It functions similarly to
`Class.ImageLabel.ImageColor3` except that it is applied to
`Class.ShirtGraphic` textures. This is useful for creating shirt graphics
that have many different color variations but share the same basic look.
See also:
- `Class.Clothing.Color3` which determines the colorization to be applied
to the `Class.Clothing` texture
code_samples: []
type: Color3
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Appearance
serialization:
can_load: true
can_save: true
capabilities:
- Avatar
- name: ShirtGraphic.Graphic
summary: |
The content ID link pointing to the `Class.ShirtGraphic` texture hosted on
the Roblox website. This property sets the texture associated with a
t-shirt.
description: |
The content ID link pointing to the `Class.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 `Class.ShirtGraphic` in Roblox Studio, as Studio will
correct it. Alternatively `Class.InsertService:LoadAsset()` can be used to
insert the t-shirt into the workspace, for example:
```
local InsertService = game:GetService("InsertService")
local Workspace = game:GetService("Workspace")
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 InsertService:LoadAsset(assetId)
end)
if success then
model.Parent = Workspace
end
```
code_samples: []
type: ContentId
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Appearance
serialization:
can_load: true
can_save: true
capabilities:
- Avatar
methods: []
events: []
callbacks: []