AssetServiceクラス

クラスサービス(game:GetService("AssetService")で取り出す)Instance.newでは作れない日本語解説は準備中

ひとことで言うと

AssetServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):A non-replicated service that handles asset-related queries to the Roblox web API.

クラスの関係

受け継いでいるクラス:Object → Instance → AssetService

メソッド(21)

名前と書き方説明
ComposeDecalAsync
AssetService:ComposeDecalAsync(decal: Decal, layers: Array): ()
Modifies an existing Decal to contain a composite PBR textures created by layering the provided textures in the order they are provided in the layers array. Textures layer based on the alpha value of the color map.
CreateAssetAsync
AssetService:CreateAssetAsync(object: Object, assetType: AssetType, requestParameters: Dictionary): Tuple
Uploads a new asset to Roblox from the given object.
CreateAssetVersionAsync
AssetService:CreateAssetVersionAsync(object: Object, assetType: AssetType, assetId: int64, requestParameters: Dictionary): Tuple
Uploads a new version for an existing asset from the given object.
CreateDataModelContentAsync
AssetService:CreateDataModelContentAsync(content: Content, options: Dictionary?): Tuple
Creates ephemeral, DataModel-scoped content from the provided content input.
CreateDecalAsync
AssetService:CreateDecalAsync(content: Dictionary): Decal
Creates a new Decal object using the provided EditableImage content maps.
CreateEditableImage
AssetService:CreateEditableImage(editableImageOptions: Dictionary?): EditableImage
Creates a new EditableImage.
CreateEditableImageAsync
AssetService:CreateEditableImageAsync(content: Content, editableImageOptions: Dictionary?): EditableImage
Creates a new EditableImage object populated with the given image.
CreateEditableMesh
AssetService:CreateEditableMesh(editableMeshOptions: Dictionary?): EditableMesh
Creates a new, empty EditableMesh.
CreateEditableMeshAsync
AssetService:CreateEditableMeshAsync(content: Content, editableMeshOptions: Dictionary?): EditableMesh
Returns a new EditableMesh object created from an existing mesh content ID.
CreateMeshPartAsync
AssetService:CreateMeshPartAsync(meshContent: Content, options: Dictionary): MeshPart
Creates a new MeshPart with a specified mesh ID and an optional table of fidelity values.
CreatePlaceAsync
AssetService:CreatePlaceAsync(placeName: string, templatePlaceID: int64, description: string): int64
Clones a place through the given templatePlaceID.
CreateSurfaceAppearanceAsync
AssetService:CreateSurfaceAppearanceAsync(content: Dictionary): SurfaceAppearance
Creates a new SurfaceAppearance object using the provided content maps.
GetAssetIdsForPackageAsync
AssetService:GetAssetIdsForPackageAsync(packageAssetId: int64): Array
Returns an array of asset IDs that are contained in a specified package.
GetAudioMetadataAsync
AssetService:GetAudioMetadataAsync(idList: Array): Array
Provides relevant metadata about a specific audio source.
GetBundleDetailsAsync
AssetService:GetBundleDetailsAsync(bundleId: int64): Dictionary
Returns details of the contents of specified bundle.
GetGamePlacesAsync
AssetService:GetGamePlacesAsync(): Instance
Returns a StandardPages object which contains the name and Class.DataModel.PlaceId|PlaceId of places within the current experience.
LoadAssetAsync
AssetService:LoadAssetAsync(assetId: int64): Instance
Loads a Model instance given its asset ID. This is the modern replacement for Class.InsertService:LoadAsset() and supports loading third-party assets.
PromptCreatePlatformContentAsync
AssetService:PromptCreatePlatformContentAsync(player: Player, object: Object, assetType: AssetType): Tuple
Allows in-experience asset creation for users by prompting a publish dialog.
PromptImportAnimationClipFromVideoAsync
AssetService:PromptImportAnimationClipFromVideoAsync(player: Player, progressCallback: Function): Tuple
Prompts the specified player to select and upload a video, which is then converted into an AnimationClip.
SavePlaceAsync
AssetService:SavePlaceAsync(requestParameters: Dictionary?): ()
Saves the state of the current place.
SearchAudioAsync
AssetService:SearchAudioAsync(searchParameters: AudioSearchParams): AudioPages
Finds audio assets matching a variety of search criteria.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(AssetService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む