Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to add animation to Prefab

Discussion in 'Animation' started by Eiseno, Dec 20, 2015.

  1. Eiseno

    Eiseno

    Joined:
    Nov 1, 2015
    Posts:
    86
    Hi,
    I have animation with my gun object.Shot and reload.I have Prefab for my gun.I am trying to attach animations into it but when i drag and drop my animations on to prefab nothing happening.How can i include my animations to prefab ?
     
  2. mikeymike

    mikeymike

    Joined:
    Oct 21, 2014
    Posts:
    35
    click add component on the gameobject and add an animation component, then you can add all the animations to the animations array on that component