Animator
Animator : Instance
Overview
์ ๋๋ฉ์ด์ ์ ์ฌ์ํ๊ณ ๋๊ธฐํํ๋ ํต์ฌ ํด๋์ค์ ๋๋ค.
์คํ ์ค์ธ AnimationTrack์ ๋ณต์ ๊ณผ์ ์ ๋ชจ๋ ์ด ์ธ์คํด์ค๊ฐ ์ฒ๋ฆฌํฉ๋๋ค.
Properties
EvaluationThrottled
bool
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Code Samples
PreferLodEnabled
bool
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Code Samples
RootMotion
CFrame
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Code Samples
RootMotionWeight
number
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Code Samples
Methods
ApplyJointVelocities
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Parameters
Value
motors
Return
void
Code Samples
GetPlayingAnimationTracks
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Parameters
Return
array
Code Samples
LoadAnimation
์ง์ ํ Animation์ Animator์ ๋ก๋ํ์ฌ ์ฌ์ ๊ฐ๋ฅํ AnimationTrack ์ธ์คํด์ค๋ฅผ ๋ฐํํฉ๋๋ค.
Animator๊ฐ ํ๋ ์ด์ด ์บ๋ฆญํฐ์ฒ๋ผ ๋ก์ปฌ ํ๋ ์ด์ด๊ฐ ๋คํธ์ํฌ ์์ ๊ถ์ ๊ฐ์ง ๋ชจ๋ธ์ ํฌํจ๋์ด ์๋ค๋ฉด, ํด๋ผ์ด์ธํธ์์ ์ด ๋ฉ์๋๋ฅผ ํธ์ถํ ๋ ์๋ฒ์๋ ํด๋น ์ ๋๋ฉ์ด์ ์ด ํจ๊ป ๋ก๋๋ฉ๋๋ค.
LoadAnimation()์ ์ฌ์ฉํ๋ ค๋ฉด Animator๊ฐ ๋ฐ๋์ Workspace ๋ด์ ์กด์ฌํด์ผ ํ๋ฉฐ, Animator๋ ์๋ฒ์์ ์์ฑ๋์ด ํด๋ผ์ด์ธํธ๋ก ๋ณต์ ๋์ด์ผ ์ ๋๋ฉ์ด์ ๋ณต์ ๊ฐ ๊ฐ๋ฅํฉ๋๋ค. ๋ก์ปฌ์์ ์์ฑ๋ Animator๋ ๋ก๋ํ ์ ๋๋ฉ์ด์ ์ ๋ค๋ฅธ ํด๋ผ์ด์ธํธ๋ก ์ ์กํ ์ ์์ต๋๋ค.
Parameters
Animation
InAnimation
์ฌ์ฉํ ์ ๋๋ฉ์ด์ ์ ๋๋ค.
Return
AnimationTrack
๋ฐํ๋ ์ ๋๋ฉ์ด์ ํธ๋์ ๋๋ค.
Code Samples
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character
local Character = LocalPlayer.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Instance.new("Animation")
Animation.AnimationId = "ovdrassetid://18850100" -- WinAnimation01
local Animator = Humanoid:FindFirstChild("Animator")
local AnimationTrack = Animator:LoadAnimation(Animation)
AnimationTrack:Play()
RegisterEvaluationParallelCallback
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Parameters
Value
InFunction
Return
void
Code Samples
StepAnimations
ํ์ฌ ์ง์๋์ง ์์ต๋๋ค.
Parameters
number
InDeltaTime
Return
void
Code Samples
Events
See also
์บ๋ฆญํฐ ์ ๋๋ฉ์ด์
Last updated