How To Open Doors Easily in Unity With Trigger Events

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 19

  • @HER0S0L
    @HER0S0L 7 місяців тому +2

    Great video, great video ;)

    • @FistFullofShrimp
      @FistFullofShrimp  7 місяців тому

      Thanks! I need to stop making door videos... but I just wanted to do one more!

  • @AntonVish
    @AntonVish 7 місяців тому +2

    ha! just moved your channel to the cooking bookmarks tab… but looks like it’s time to move it back to gamedev tab :)

    • @FistFullofShrimp
      @FistFullofShrimp  7 місяців тому

      How quickly my shrimp mind changes!!! 🍤 🧠

  • @shemdesuuu
    @shemdesuuu 5 місяців тому

    Thank you! this is exactly the tutorial i needed!

  • @alien7383
    @alien7383 Місяць тому

    Hey guys he forgot to do it:
    change _doorAnimator.SetTrigger("Close") to _doorAnimator.SetTrigger("Closed")
    Hope I saved you some time!

  • @TanarysHell
    @TanarysHell 2 місяці тому

    Question, I see many tutorials of opening doors. However this with animations don't explain that or how to do this door as a prefab with the animation. You didn't tell that if you use this as a prefab, imagine that you have 15 / 20 equal doors to open, the animation will not work because it will trigger the original Transform parameters when you record the animation. Right?

  • @fx_dom
    @fx_dom 5 місяців тому

    you the best!

  • @rafaelsatorre5531
    @rafaelsatorre5531 Місяць тому

    I have a problem, It works perfectly in the Unity Game scene but when i build the App It doesnt and i dont know why

  • @AstralNostalgia
    @AstralNostalgia 7 місяців тому +1

    what ahppened if the player enters to area and exit inmediatly...the door is open and close at the same time...how can I fix it ? thanls

  • @lucutes2936
    @lucutes2936 7 місяців тому +1

    thx

    • @FistFullofShrimp
      @FistFullofShrimp  7 місяців тому

      You're the most welcome that a shrimp can welcome someone 🍤

  • @mirnsc36
    @mirnsc36 2 місяці тому

    Yay

  • @BenTheDev754
    @BenTheDev754 6 місяців тому

    I'm currently trying to do this, but I keep getting a warning message in my console that says "Animation controller is not valid, animations will not be used". Did you encounter this at all? I can't figure out why it would be invalid.

  • @alienmnm3361
    @alienmnm3361 3 місяці тому

    Works for the "Player Object" but not for the actual players in the instance how do i make that work?

    • @Asian.Thomas
      @Asian.Thomas 3 місяці тому

      The TriggerEvent looks for Colliders with a "Player" tag on them, make sure your player is tagged as "Player" I think

  • @VerityD2
    @VerityD2 Місяць тому

    there is a massive bug in this. The door will bug and stay open, making you restart the scene in order to fix

    • @alien7383
      @alien7383 Місяць тому

      I found the Bug.
      change _doorAnimator.SetTrigger("Close") to _doorAnimator.SetTrigger("Closed")

    • @VerityD2
      @VerityD2 Місяць тому

      @@alien7383 sounds right. I ended up switching to bools bc triggersets tend to be finicky