How To Open Doors Easily in Unity With Trigger Events

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 21

  • @HER0S0L
    @HER0S0L 8 месяцев назад +2

    Great video, great video ;)

    • @FistFullofShrimp
      @FistFullofShrimp  8 месяцев назад

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

  • @AntonVish
    @AntonVish 8 месяцев назад +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  8 месяцев назад

      How quickly my shrimp mind changes!!! 🍤 🧠

  • @shemdesuuu
    @shemdesuuu 7 месяцев назад

    Thank you! this is exactly the tutorial i needed!

  • @TanarysHell
    @TanarysHell 3 месяца назад

    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?

  • @AstralNostalgia
    @AstralNostalgia 8 месяцев назад +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

  • @cds8528
    @cds8528 29 дней назад

    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?

  • @rafaelsatorre5531
    @rafaelsatorre5531 2 месяца назад

    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

  • @lucutes2936
    @lucutes2936 8 месяцев назад +1

    thx

    • @FistFullofShrimp
      @FistFullofShrimp  8 месяцев назад

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

  • @fx_dom
    @fx_dom 6 месяцев назад

    you the best!

  • @BenTheDev754
    @BenTheDev754 7 месяцев назад

    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.

  • @mirnsc36
    @mirnsc36 3 месяца назад

    Yay

  • @alienmnm3361
    @alienmnm3361 5 месяцев назад

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

    • @Asian.Thomas
      @Asian.Thomas 4 месяца назад

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

  • @alien7383
    @alien7383 2 месяца назад

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

  • @VerityD2
    @VerityD2 2 месяца назад

    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 2 месяца назад

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

    • @VerityD2
      @VerityD2 2 месяца назад

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

  • @BlackConservativePatriot-g9u
    @BlackConservativePatriot-g9u 12 дней назад

    CS1513: } expected