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

Animations Query. Please Help TIA!

Discussion in 'General Discussion' started by markdeleon08, May 11, 2016.

  1. markdeleon08

    markdeleon08

    Joined:
    Nov 1, 2015
    Posts:
    17
    Hi Everyone,

    I would like to ask if anyone here can share how can I accomplish the item pick up animation(from center to UI inventory).

    Like in this one (when the player click on a object - it displays on the center then goes to the UI)


    And also am I correct that the dev here uses a UI component?

    Thanks!
     
  2. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    It looks like basic motion tween (and size tween for bounce effect) which you can do with any free tween lib or by custom code.
     
    theANMATOR2b likes this.
  3. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,328
    -_-

    ...It is a plain old interpolation between original position, desired position and original size + desired size.
     
  4. markdeleon08

    markdeleon08

    Joined:
    Nov 1, 2015
    Posts:
    17
    Thanks for the reply. Do you think they used unity UI for their inventory or just a simple gameobject?

    Thanks again .

    Thanks for the help mate. :)
     
  5. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    Probably just UI and/or sprites since it's all 2D.