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 are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here:
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

How do I make my doors uninteractable while they are animating

Discussion in 'Animation' started by CopeNLuu, Sep 22, 2022.

  1. CopeNLuu


    Apr 3, 2022
    I have a door in my game and if you spam interact with it while it is animating, you can break it and make it change the original close and open positions.
    I figured the best way to resolve this would be to detect when it's animating and stop the player from interacting with it while "animatingOpen/animatingClose = true", but I'm not certain how to detect this in the script