Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Keyframe Recording Mode Grayed Out.

Discussion in 'Animation' started by davidaksel2, Feb 19, 2023.

  1. davidaksel2

    davidaksel2

    Joined:
    Mar 30, 2020
    Posts:
    3
    As the title says, i've been trying to use the keyframe recording mode to turn a box collider on and off, and the button seems to be grayed out.

    It does work when i bring a different object into the scene, for example the player character, and it worked for it as well (when i did the player character), but for some reason it doesn't work now.
     
  2. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    The object you're trying to animate needs to be selected in the hierarchy.

    I'm pretty sure that's the issue, but also make sure that the object has an Animator component with an Animator Controller asset assigned to it.

    If you still can't figure it out, posting a few screenshots or videos would help.
     
  3. davidaksel2

    davidaksel2

    Joined:
    Mar 30, 2020
    Posts:
    3
    What im trying to do, is to record some keyframes so that i can enable/disable the box collider that i have around the skeleton's sword, so i can detect when it hits the player character.

    ill try with a different enemy (dont know why i havent thought about it yesterday), but i still want to use this one as well.

    tried to record a video, but fraps or Nvidia recorder dont want to work properly.
     

    Attached Files:

  4. Unrighteouss

    Unrighteouss

    Joined:
    Apr 24, 2018
    Posts:
    599
    davidaksel2 likes this.
  5. davidaksel2

    davidaksel2

    Joined:
    Mar 30, 2020
    Posts:
    3
    The video helped me with the problem, Thank you!
     
    Unrighteouss likes this.