ShirtGraphic

非推奨を表示

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。

シャツグラフィック オブジェクトは、キャラクターの胴体の前面にテクスチャを適用します。Tシャツを表示するために使用されます。

概要

プロパティ

  • 並列読み取り

    ShirtGraphic テクスチャに適用される色化を決定します。

  • Graphic:ContentId
    並列読み取り

    Roblox ウェブサイトにホストされている ShirtGraphic テクスチャへのコンテンツIDリンク。このプロパティは、Tシャツに関連するテクスチャを設定します。

プロパティ

Color3

並列読み取り

このプロパティは、ShirtGraphic テクスチャに適用される色化を決定します。それは、ImageLabel.ImageColor3 を除き、ShirtGraphic テクスチャに適用されます。これは、多くの異なる色のバリエーションを持つシャツグラフィックを作成するのに便利で、同じ基本の外観を共有します。

参照してください:

Graphic

ContentId
並列読み取り

Roblox ウェブサイトにホストされている ShirtGraphic テクスチャへのコンテンツIDリンク。このプロパティは、Tシャツに関連するテクスチャを設定します。

ID を見つける

このコンテンツIDは、Tシャツのウェブサイト URLと異なります。It can be found by pasting the website URL of the t-shirt into the グラフィック property of the ShirtGraphic in Roblox Studio, as Studio will correct it.代わりに 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

方法

イベント