ContentProviderクラス
ひとことで言うと
ContentProviderは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Service that is used to load content, or assets, into a game.
クラスの関係
プロパティ(2)
| 名前と書き方 | 説明 |
|---|---|
BaseUrlContentProvider.BaseUrl: string | Used by the ContentProvider to download assets from the Roblox website. |
RequestQueueSizeContentProvider.RequestQueueSize: int | Gives the number of items in the ContentProvider request queue that need to be downloaded. |
メソッド(10)
| 名前と書き方 | 説明 |
|---|---|
GetAssetFetchStatusContentProvider:GetAssetFetchStatus(contentId: ContentId): AssetFetchStatus | Gets the current AssetFetchStatus of the contentId provided. |
GetAssetFetchStatusChangedSignalContentProvider:GetAssetFetchStatusChangedSignal(contentId: ContentId): RBXScriptSignal | A signal that fires when the AssetFetchStatus of the provided content changes. |
ListEncryptedAssetsContentProvider:ListEncryptedAssets(): Array | Returns an array of the asset IDs that currently have a registered encryption key. |
PreloadAsyncContentProvider:PreloadAsync(contentIdList: Array, callbackFunction: Function): () | Yields until all of the assets associated with the given Class.Instance|Instances have loaded. |
RegisterDefaultEncryptionKeyContentProvider:RegisterDefaultEncryptionKey(encryptionKey: string): () | Registers a fallback encryption key used to decrypt any encrypted asset that doesn't have its own key registered. |
RegisterDefaultSessionKeyContentProvider:RegisterDefaultSessionKey(sessionKey: string): () | Decrypts the provided session key and registers the result as the default encryption key. |
RegisterEncryptedAssetContentProvider:RegisterEncryptedAsset(assetId: ContentId, encryptionKey: string): () | Registers an encryption key used to decrypt a specific encrypted asset. |
RegisterSessionEncryptedAssetContentProvider:RegisterSessionEncryptedAsset(contentId: ContentId, sessionKey: string): () | Decrypts the provided session key and registers it as the encryption key for a specific asset. |
UnregisterDefaultEncryptionKeyContentProvider:UnregisterDefaultEncryptionKey(): () | Clears the default encryption key previously set on the ContentProvider. |
UnregisterEncryptedAssetContentProvider:UnregisterEncryptedAsset(assetId: ContentId): () | Removes the encryption key registered for a specific asset. |
イベント(1)
| 名前と書き方 | 説明 |
|---|---|
AssetFetchFailedContentProvider.AssetFetchFailed(assetId: ContentId) | Fires when the ContentProvider fails to fetch an asset, passing the asset's ID. |
受け継いでいるメンバー
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)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(ContentProvider)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。