AudioPages

사용되지 않는 항목 표시

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

만들 수 없음
복제되지 않음

반환된 특수 버전의 Pages 클래스는 AssetService:SearchAudio()에 의해 반환됩니다. 반환된 데이터 형식에 대한 참조는 다음 코드 샘플을 참조하십시오.

코드 샘플

This code gets the music assets returned by the keyword "happy" and prints out their titles.

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에서 상속되었습니다
  • 읽기 전용
    복제되지 않음
    병렬 읽기

    현재 페이지가 마지막 페이지인지 여부.

메서드

메서드Pages에서 상속되었습니다
  • 현재 페이지의 항목을 반환합니다. 항목의 키는 이 개체의 소스에 의해 결정됩니다.

  • 가능하면 페이지 개체의 다음 페이지로 반복합니다.

속성

메서드

이벤트