배우기
엔진 클래스
KeyframeSequenceProvider
사용되지 않음
만들 수 없음
서비스
복제되지 않음

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


요약
메서드
GetAnimations(userId: User):Instance
사용되지 않음
GetKeyframeSequence(assetId: ContentId):Instance
사용되지 않음
GetKeyframeSequenceById(assetId: number,useCache: boolean):Instance
사용되지 않음
RegisterActiveKeyframeSequence(keyframeSequence: Instance):ContentId
RegisterKeyframeSequence(keyframeSequence: Instance):ContentId
상속된 멤버
코드 샘플
임시 애니메이션 생성
local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
local function createPreviewAnimation(keyframeSequence)
local hashId = KeyframeSequenceProvider:RegisterKeyframeSequence(keyframeSequence)
local Animation = Instance.new("Animation")
Animation.AnimationId = hashId
return Animation
end
local keyframeSequence = Instance.new("KeyframeSequence")
local animation = createPreviewAnimation(keyframeSequence)
print(animation)

API 참조
메서드
GetAnimations
사용되지 않음

GetAnimationsAsync
생성
기능: Animation
KeyframeSequenceProvider:GetAnimationsAsync(userId:User):Instance
매개 변수
userId:User
반환
코드 샘플
키프레임 시퀀스 제공자 GetAnimationsAsync
local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
local USER_ID = 0 -- 여기에 사용자 ID를 입력하세요
local function extractPages(pagesObject)
local array = {}
while true do
local thisPage = pagesObject:GetCurrentPage()
for _, v in pairs(thisPage) do
table.insert(array, v)
end
if pagesObject.IsFinished then
break
end
pagesObject:AdvanceToNextPageAsync()
end
return array
end
local inventoryPages = KeyframeSequenceProvider:GetAnimationsAsync(USER_ID)
local animationIds = extractPages(inventoryPages)
for _, id in pairs(animationIds) do
print(id)
end
print("총: ", #animationIds)

GetKeyframeSequence
사용되지 않음

GetKeyframeSequenceAsync
생성
기능: Animation
KeyframeSequenceProvider:GetKeyframeSequenceAsync(assetId:ContentId):Instance
매개 변수
assetId:ContentId
반환
코드 샘플
애니메이션의 KeyframeSequence 가져오기
local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
local ANIMATION_ID = "rbxassetid://507771019"
-- 자산의 키프레임 시퀀스를 가져옵니다.
local keyframeSequence
local success, err = pcall(function()
keyframeSequence = KeyframeSequenceProvider:GetKeyframeSequenceAsync(ANIMATION_ID)
end)
if success then
-- 각 키프레임을 반복하고 해당 시간 값을 출력합니다.
local keyframeTable = keyframeSequence:GetKeyframes()
for key, value in keyframeTable do
print(`키프레임 번호 {key}의 시간은: {value.Time}`)
end
else
print(`KeyframeSequence를 가져오는 중 오류 발생: {err}`)
end

GetKeyframeSequenceById
사용되지 않음

RegisterActiveKeyframeSequence
기능: Animation
KeyframeSequenceProvider:RegisterActiveKeyframeSequence(keyframeSequence:Instance):ContentId
매개 변수
keyframeSequence:Instance
반환
ContentId
코드 샘플
임시 애니메이션 생성
local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
local function createPreviewAnimation(keyframeSequence)
local hashId = KeyframeSequenceProvider:RegisterKeyframeSequence(keyframeSequence)
local Animation = Instance.new("Animation")
Animation.AnimationId = hashId
return Animation
end
local keyframeSequence = Instance.new("KeyframeSequence")
local animation = createPreviewAnimation(keyframeSequence)
print(animation)

RegisterKeyframeSequence
기능: Animation
KeyframeSequenceProvider:RegisterKeyframeSequence(keyframeSequence:Instance):ContentId
매개 변수
keyframeSequence:Instance
반환
ContentId
코드 샘플
키프레임 시퀀스 제공자: 키프레임 시퀀스 등록
local KeyframeSequenceProvider = game:GetService("KeyframeSequenceProvider")
local asset = KeyframeSequenceProvider:RegisterKeyframeSequence(workspace.KeyframeSequence)
local animation = Instance.new("Animation")
animation.Name = "테스트 애니메이션"
animation.AnimationId = asset
animation.Parent = workspace

©2026 Roblox Corporation. Roblox 및 Roblox 로고, 'Powering Imagination'은 미국 및 기타 국가 내 당사의 등록 및 미등록 상표입니다.