ShirtGraphic

顯示已棄用項目

*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡

襯衫圖形 對象會將紋理應用到角色軀幹的前表面。它用於顯示T恤。

概要

屬性

  • 平行讀取

    決定要應用到 ShirtGraphic 紋理上的色化。

  • Graphic:ContentId
    平行讀取

    內容ID鏈指向在 Roblox 網站上主機的 ShirtGraphic 紋理。此特性設置與 T 恤相關的紋理。

屬性

Color3

平行讀取

此屬性決定應用於 ShirtGraphic 紋理的色化。它與 ImageLabel.ImageColor3 相似,但適用於 ShirtGraphic 紋理。這對創建擁有許多不同顏色變化但共享相同基本外觀的襯衫圖形有用。

也見:

Graphic

ContentId
平行讀取

內容ID鏈指向在 Roblox 網站上主機的 ShirtGraphic 紋理。此特性設置與 T 恤相關的紋理。

尋找ID

此內容ID與 T 恤網站 URL 不同。可以通過將 T 恤網站 URL 貼到 Roblox Studio 的 圖形 屬性中來找到它,因為 Studio 會將它修正。或者 InsertService:LoadAsset() 可以用來將 T 恤插入工作區,例如:


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

方法

活動