Collectionデータ型
データ型日本語解説は準備中
ひとことで言うと
Collectionは、ロブロックス(Roblox)のデータ型です。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):A live, query-based group of instances returned by Class.CollectionService:CreateCollection().
プロパティ(3)
| 名前と書き方 | 説明 |
|---|---|
EnabledCollection.Enabled: bool | Controls whether the collection is tracking instances and firing callbacks. |
QueryCollection.Query: string | The query that defines the collection. |
RootCollection.Root: Instance | The instance whose descendants the collection tracks. |
メソッド(3)
| 名前と書き方 | 説明 |
|---|---|
DestroyCollection:Destroy() | Destroys the collection, stopping all tracking and callbacks. |
ForEachCollection:ForEach(callback: function) | Calls a function once for each instance in the collection. |
GetCountCollection:GetCount(): number | Returns the number of instances in the collection. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(Collection)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。