Contentデータ型
データ型日本語解説は準備中
ひとことで言うと
Contentは、ロブロックス(Roblox)のデータ型です。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):Represents a reference to asset content stored externally or as an object within the place.
コンストラクター(作り方)(3)
| 名前と書き方 | 説明 |
|---|---|
fromUriContent.fromUri(uri: string) | Returns a new Content with an asset URI string value referencing content external to the place. |
fromAssetIdContent.fromAssetId(assetId: number) | Returns a new Content from a numeric asset ID. |
fromObjectContent.fromObject(object: Object) | Returns a new Content with a strong reference to an Object. |
プロパティ(4)
| 名前と書き方 | 説明 |
|---|---|
noneContent.none: Content | An empty Content value with Content.SourceType of Enum.ContentSourceType|None. |
SourceTypeContent.SourceType: Enum.ContentSourceType | The source type of the contained value. |
UriContent.Uri: string? | A URI string if Content.SourceType is Enum.ContentSourceType|Uri, otherwise nil. |
ObjectContent.Object: Object? | A reference to a non-nil Object if Content.SourceType is Enum.ContentSourceType|Object, otherwise nil. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(Content)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。