How To Open Doors Easily in Unity With Trigger Events

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 23

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

    Great video, great video ;)

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

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

  • @AntonVish
    @AntonVish 10 місяців тому +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  10 місяців тому

      How quickly my shrimp mind changes!!! 🍤 🧠

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

    Thank you! this is exactly the tutorial i needed!

  • @AstralNostalgia
    @AstralNostalgia 9 місяців тому +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

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

    you the best!

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

    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?

  • @rafaelsatorre5531
    @rafaelsatorre5531 4 місяці тому

    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

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

    If someone reads this, i keep getting the object reference not set to an instance of an object bug. i named everything the way he did and i used the exact script. how do i fix it?

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

    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.

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

    thx

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

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

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

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

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

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

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

    Yay

  • @Terry-Go-Round1013
    @Terry-Go-Round1013 4 дні тому

    dancing to the elevator music

  • @alien7383
    @alien7383 4 місяці тому

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

  • @VerityD2
    @VerityD2 4 місяці тому

    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 4 місяці тому

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

    • @VerityD2
      @VerityD2 4 місяці тому

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

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

    CS1513: } expected