기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Unity Studio

Open Unity Studio

Unity Studio

이 페이지는 선택한 언어로 제공되지 않습니다.
​
​
Unity Studio
  • What's new in Unity Studio
  • Introduction to Unity Studio
  • Launch Unity Studio
  • Create your first Unity Studio project
  • Develop with Unity Studio
    • The Unity Studio interface
    • Save your progress
    • GameObjects
    • Assets
    • Materials
    • Scene settings
    • Logic
    • The UI Creator
    • Animation
      • Introduction to the Animation system
      • Animation clips
      • Animation Timeline window reference
      • Animate a GameObject with the Animation component
      • Animation component reference
      • Animate multiple GameObjects with the Animation Director
      • Animation Director reference
      • Import Animations
      • Play animations in your scene
    • AI features
  • Collaborate in Unity Studio
  • Export drafts to the Unity Editor
  • Publish and share
  • Troubleshooting Unity Studio issues
  • Report bugs and share feedback
  • Manage your analytics and marketing preferences
  1. Unity Studio
  2. Develop with Unity Studio
  3. Animation

Play animations in your scene

Play animations in your scene either automatically or in response to buttons or Logic scripts.
읽는 시간 2분
최근 업데이트: 5달 전

You can start the animations you create with the Animation Director and Animation component in several ways:
  • Play an animation automatically
  • Use a button to play the animation
  • Set up a Logic script to play the animation

Play an animation automatically

Autoplay starts an animation automatically when the Animation component or Animation Director becomes active. By default, this happens when the scene starts, unless you disable the object or component. If the object is inactive when the scene loads, the animation doesn’t start until you enable the object later.
To play an animation when the scene starts:
  1. Select the Animation Director or the object that contains the Animation component in the Hierarchy panel. The Inspector panel displays.
  2. In the Inspector panel, enable Active (the checkbox next to the object's name) to ensure the object is active on start.
  3. If your animations aren't already set up on the object:
    • Select Add (+) to add animations or timelines.
    • Configure the remaining settings as needed. Refer to Animation component reference or Animation Director reference for information about these settings.
  4. Set Autoplay to the animation or timeline you want to play automatically.
  5. Press Play.
The chosen animation plays when the scene starts.

Use a button to play the animation

Buttons provide an alternative way to trigger an animation in your scene without the need to set up separate Logic scripts. The animation starts when the user interacts with the button.
To set up a button to play an animation:
  1. Select a Button object in the Hierarchy panel. If there are no buttons, select Add (+) > UI > Button to add one.
  2. In the Inspector panel, enable Interactable.
  3. Navigate to the When button is clicked section of the button's properties.
  4. Select Add (+) to add an animation section to your button.
  5. Expand the dropdown and select either the Animation Director or an object that contains an Animation component.
  6. Choose an action (Play, Pause, Stop).
  7. If shown, set Name to the animation clip you want to trigger.
  8. Optionally, set Speed to change the playback speed of the animation.
Your button is ready to use in the scene. In Play mode, select the button to start your animation.

Set up a Logic script to play the animation

A Logic script lets you control exactly when an animation starts, stops, and pauses. For example, you can trigger an animation after an event such as a collision or a key press.
You can use the following nodes in your Logic scripts to control your animations:
  • Play animation node
  • Pause animation node
  • Stop animation node
For an example of how to create a script that activates an animation when the user presses a key, refer to Trigger an animation with a key press.

Additional resources

  • Animation
  • Import animations

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Play an animation automatically

    • Use a button to play the animation

    • Set up a Logic script to play the animation

    • Additional resources


이 페이지의 문제 보고