Search Unity

Camera position - VS - Animation data

Discussion in 'Editor & General Support' started by kinetiknz, May 30, 2012.

  1. kinetiknz

    kinetiknz

    Joined:
    May 5, 2010
    Posts:
    173
    Hey, I have noticed lately that Unity stores transform data for camera's seperate to any animation data.

    In my mind the camera should adopt the transforms of whichever animation is currently applied.

    The problem is that when switching to a camera and playing an animation, the camera is in the wrong place UNTIL the animation actually starts, forcing awkward workarounds, such as copy pasting every channel of the first keyframe back onto the camera, or delaying the drawing of the camera.

    Does anyone have an elegant solution for this??

    Thanks!
     
  2. Glockenbeat

    Glockenbeat

    Joined:
    Apr 24, 2012
    Posts:
    669
    Since you cannot access the animation at runtime, it's hard to sync the startup position with the animation start position. Guess you'll need to stick to the manual way of adjusting it.
     
  3. kinetiknz

    kinetiknz

    Joined:
    May 5, 2010
    Posts:
    173
    Easy editor script for someone to make? I'd pay $5-10 for sure