Search Unity

Simple "Press [Button] to start open/close animation" for objects like doors, drawers etc.

Discussion in 'Animation' started by kevinhos, May 27, 2016.

  1. kevinhos

    kevinhos

    Joined:
    Jan 4, 2016
    Posts:
    24
    I've built a model fridge in Cinema4D and animated an open and close animation in the time line, sliced the animation into two separate ones in Unity and now I wish to have the object interactive in my game by pressing the Q key which would open the door and then if pressed again would close the door.

    I feel like this would be a simple C# script to write but I come from a design and modeling background and haven't a notion on how I would achieve this?

    Any help would be greatly appreciated.
     
  2. meierdesigns

    meierdesigns

    Joined:
    Aug 3, 2016
    Posts:
    22
    hey did you find any solution?
     
  3. apk4down

    apk4down

    Joined:
    May 30, 2017
    Posts:
    1