AudioPages
非推奨を表示
作成できません
複製されていません
A special version of the Pages class returned by AssetService:SearchAudio(). See the following code sample for reference on the returned data format.
コードサンプル
Getting Music Search Titles
local AssetService = game:GetService("AssetService")
local audioSearchParams = Instance.new("AudioSearchParams")
audioSearchParams.SearchKeyword = "happy"
local success, result = pcall(function()
return AssetService:SearchAudio(audioSearchParams)
end)
if success then
local currentPage = result:GetCurrentPage()
for _, audio in currentPage do
print(audio.Title)
end
else
warn("AssetService error: " .. result)
end
--[[ Returned data format
{
"AudioType": string,
"Artist": string,
"Title": string,
"Tags": {
"string"
},
"Id": number,
"IsEndorsed": boolean,
"Description": string,
"Duration": number,
"CreateTime": string,
"UpdateTime": string,
"Creator": {
"Id": number,
"Name": string,
"Type": number,
"IsVerifiedCreator": boolean
}
}
--]]
概要
プロパティ
Pages から継承した プロパティ- 読み取り専用複製されていません並列読み取り
Whether or not the current page is the last page available.
方法
Pages から継承した 方法Returns the items on the current page. The keys in the item are determined by the source of this object.
- イールド
Iterates to the next page in the pages object, if possible.
プロパティ
プロパティ は Pages から継承されました
方法
プロパティ は Pages から継承されました