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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Transform Animations in 2017.4.40f1 Not Working

Discussion in 'Animation' started by midnightmilloir, Dec 1, 2022.

  1. midnightmilloir

    midnightmilloir

    Joined:
    Oct 28, 2019
    Posts:
    2
    Hi I am having problems getting a simple rotation animation to work using keyframes. The problem I'm having is the keyframes are unable to save values. I've tried using the record button and changing the keyframe values directly to 180 but either way it just resets to 0. Can anyone please provide insight as to why this is
    broken?

    Hitting the record button and change the Rotation.y in Inspector applies to the prefab and not to the individual keyframe. So when I preview the animation my prefab is stuck in the new rotation instead of animating through it.

    I've also tried updating the keyframe value directly in the Animation window. In the text box at the bottom left for Rotation.y I'm trying to set the middle keyframe to 180. But after hitting Enter it resets to 0.

    Screen Shot 2022-11-30 at 5.50.56 PM.png
     
    Last edited: Dec 1, 2022
  2. midnightmilloir

    midnightmilloir

    Joined:
    Oct 28, 2019
    Posts:
    2
    I'm still unable to determine why I can't apply a rotation animation to my player prefab, but I figured out a workaround. I added this player prefab to a parent prefab and created the animation on the parent. I hope this helps other people that have this issue.