学ぶ
エンジンクラス
InsertService
作成できません
サービス

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


概要
プロパティ
方法
ApproveAssetId(assetId: number):()
非推奨
ApproveAssetVersionId(assetVersionId: number):()
非推奨
CreateMeshPartAsync(meshId: ContentId,collisionFidelity: Enum.CollisionFidelity,renderFidelity: Enum.RenderFidelity):MeshPart
GetBaseSets():{any}
非推奨
GetCollection(categoryId: number):{any}
非推奨
GetFreeDecals(searchText: string,pageNum: number):{any}
非推奨
GetFreeDecalsAsync(searchText: string,pageNum: number):{any}
GetFreeModels(searchText: string,pageNum: number):{any}
非推奨
GetFreeModelsAsync(searchText: string,pageNum: number):{any}
GetUserCategories(userId: User):{any}
非推奨
GetUserSets(userId: User):{any}
非推奨
Insert(instance: Instance):()
非推奨
loadAsset(assetId: number):Instance
非推奨
継承されたメンバー

APIリファレンス
プロパティ
AllowInsertFreeModels
非推奨

方法
ApproveAssetId
非推奨

ApproveAssetVersionId
非推奨

CreateMeshPartAsync
イールド
機能: Basic
InsertService:CreateMeshPartAsync(
meshId:ContentId, collisionFidelity:Enum.CollisionFidelity, renderFidelity:Enum.RenderFidelity
パラメータ
meshId:ContentId
collisionFidelity:Enum.CollisionFidelity
renderFidelity:Enum.RenderFidelity
戻り値

GetBaseCategories
非推奨

GetBaseSets
非推奨

GetCollection
非推奨

GetFreeDecals
非推奨

GetFreeDecalsAsync
イールド
機能: AssetRead
InsertService:GetFreeDecalsAsync(
searchText:string, pageNum:number
パラメータ
searchText:string
pageNum:number
戻り値
コードサンプル
InsertService:GetFreeDecalsAsync
local InsertService = game:GetService("InsertService")
local page = unpack(InsertService:GetFreeDecalsAsync("Cats", 0)) -- "Cats"をページ1で検索します。
for i = 1, page.TotalCount do
local item = page.Results[i]
print("アイテム #" .. i)
for key, value in pairs(item) do
print(" " .. key .. ": " .. value)
end
end

GetFreeModels
非推奨

GetFreeModelsAsync
イールド
機能: AssetRead
InsertService:GetFreeModelsAsync(
searchText:string, pageNum:number
パラメータ
searchText:string
pageNum:number
戻り値
コードサンプル
InsertService:GetFreeModelsAsync
local InsertService = game:GetService("InsertService")
local page = unpack(InsertService:GetFreeModelsAsync("Cats", 0)) -- "ページ1で「Cats」を検索します。"
for i = 1, page.TotalCount do
local item = page.Results[i]
print("アイテム #" .. i)
for key, value in pairs(item) do
print(" " .. key .. ": " .. value)
end
end

GetLatestAssetVersionAsync
イールド
機能: AssetRead
InsertService:GetLatestAssetVersionAsync(assetId:number):number
パラメータ
assetId:number
戻り値

GetUserCategories
非推奨

GetUserSets
非推奨

Insert
非推奨

LoadAsset
イールド
機能: LoadOwnedAsset
InsertService:LoadAsset(assetId:number):Instance
パラメータ
assetId:number
戻り値
コードサンプル
InsertService:LoadAsset
local InsertService = game:GetService("InsertService")
local ASSET_ID = 82353
-- アセットを読み込む
local asset = InsertService:LoadAsset(ASSET_ID)
-- 読み込んだアセットをワークスペースに親として設定する
asset.Parent = workspace

loadAsset
非推奨

LoadAssetVersion
イールド
機能: LoadOwnedAsset
InsertService:LoadAssetVersion(assetVersionId:number):Instance
パラメータ
assetVersionId:number
戻り値
コードサンプル
InsertService:LoadAssetVersion
local InsertService = game:GetService("InsertService")
local ASSET_VERSION_ID = 296050499
-- アセットを指定のバージョンでロードします
local asset = InsertService:LoadAssetVersion(ASSET_VERSION_ID)
asset.Parent = game.Workspace

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。