Unity C

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

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

  • @davepolo7407
    @davepolo7407 Год назад +4

    I was about to lose my sanity and then this video helped me!
    THANK YOU!!!!!

  • @hatdogngnanaymo2893
    @hatdogngnanaymo2893 3 года назад +12

    Its so begginer friendly and i love it!

  • @eduardobittencourt965
    @eduardobittencourt965 3 года назад +14

    if someone is having trouble rotating hinge and door, change 'center' to 'pivot' under top screen.

    • @joshuavc30
      @joshuavc30 Год назад +1

      thanks i got stumped on this for a bit

    • @Kadilamri123
      @Kadilamri123 Год назад

      thank you so much

  • @AlonePirate02
    @AlonePirate02 Год назад +1

    Great tutorial! It worked perfectly.

  • @splashygaming3023
    @splashygaming3023 Год назад +1

    the hingehere dosnt work for me

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

    where i can get the character package

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

    How can i close the door?

  • @karar4119
    @karar4119 3 года назад +2

    You are the best i will never forget your help

  • @kozmobotgames
    @kozmobotgames Год назад

    Thank you so much! This is what I needed for my project.

  • @hectorarts
    @hectorarts 3 года назад +1

    This script worked for me but I am having trouble using it for another door. Any suggestions on how to do it. I can’t seem to activate my door once I already clicked my object

  • @Christsakos
    @Christsakos 4 года назад +2

    and if i want to close it again?

  • @kenofficialstudio5250
    @kenofficialstudio5250 4 года назад +3

    it's didn't work??

  • @bragozan
    @bragozan 3 года назад +1

    Could anyone advise me on what should I do to leave the door open after the function is triggered?
    If the door is open, then it opens again upon a secondary press of "E".

  • @elsenussi
    @elsenussi 4 года назад +1

    Could you please tell me how to add sound to the door in the same hinge script ?

    • @Marques2000
      @Marques2000 3 года назад

      Add: "public AudioSource hingeAudio" and on void OnTriggerStay add: "audioPuerta.Play();" that would work

  • @kazrepair7219
    @kazrepair7219 Год назад

    the problem is when you click open door the door animation will start

  • @brodyk6431
    @brodyk6431 3 года назад +1

    hey! idk if you'll see this, but is there a way to make the keys for specific doors?

  • @PineLimeCordial
    @PineLimeCordial 2 года назад

    When I click the key the door automatically opens😭😭 idk how to fix it

  • @Augie-c3r
    @Augie-c3r 4 года назад +1

    You're a lifesaver thanks man

  • @Daw3D
    @Daw3D 3 года назад +1

    Thanks for the help!

  • @doriangreen2000
    @doriangreen2000 4 года назад +1

    Hey, for some reason when I press E it always opens no matter what. I tried turning the collides and triggers off and on but it still doesn’t work right

  • @lubyy
    @lubyy Год назад +5

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class PickKey : MonoBehaviour
    {
    public Component doorcolliderhere;
    void OnTriggerStay()
    {
    if (Input.GetKey(KeyCode.E))
    {
    doorcolliderhere.GetComponent().enabled = true;
    }
    }
    }

  • @plirp6066
    @plirp6066 4 года назад +2

    thanks man

  • @sukunagaming77
    @sukunagaming77 3 года назад

    thnks a lot man appreciate ur work thnxxx still working...but at last in which u add input e key i didnt do that and still my door opens

  • @kalpolproductions8558
    @kalpolproductions8558 3 года назад

    bro i am using same method for smthing else and whenever i start it auto matically loops the animation

    • @bragozan
      @bragozan 3 года назад

      Play Automatically should be turned off in the Animation component of the Hinge object

  • @elsenussi
    @elsenussi 4 года назад

    you are awesome

  • @chichimurucho5322
    @chichimurucho5322 4 месяца назад

    nice

  • @caiqueaoquadrado
    @caiqueaoquadrado 4 года назад +1

    Aweeeeesome. Thanks man.

  • @ardefestrhackteam6362
    @ardefestrhackteam6362 3 года назад +1

    hi video very nice how to close the door can you send the script code?

    • @yagizdincel
      @yagizdincel 2 года назад +1

      buyur kardeşim
      public class doorlockopen : MonoBehaviour
      {
      kendin yaz brom... hehexd
      }

    • @ardefestrhackteam6362
      @ardefestrhackteam6362 2 года назад +2

      @@yagizdincel Sjsjjdj

  • @callum4479
    @callum4479 4 года назад

    Thanks for the video but ive copied everything you did but i can pick up the key from anywhere in the scene. Anyone know how to fix ?

    • @MasterSirman
      @MasterSirman 3 года назад

      Couple of things might be miss-placed, the size of the box collider on both sides of the colliders(player/key), you might want to specify the collider , the on trigger method involves the collider of the game object where the script is and the "other" thats the target collider, you can place an if to specify the "other" collider with the key.

  • @kenofficialstudio5250
    @kenofficialstudio5250 4 года назад

    why the doors animate 1 time Can you tell me howw because me soo confused

    • @SensoNoKage
      @SensoNoKage 3 года назад

      hey idk if you still looking for the answer but you gotta make a door close animation

  • @weeener8303
    @weeener8303 4 года назад

    Its amazing but I cant add the animation Hingehere bit

    • @dylansuaris8365
      @dylansuaris8365 4 года назад

      Whats the problem exactly, it works for me

  • @akinpelujoseph9259
    @akinpelujoseph9259 2 года назад

    It works, thanks

  • @Marques2000
    @Marques2000 3 года назад

    Very uselful

  • @androidprime8310
    @androidprime8310 4 года назад

    you are the best

  • @BabithaRazack
    @BabithaRazack Год назад +1

    the music feels like ohio

  • @thinkeable
    @thinkeable 3 года назад

    sh1t 1 day of work and nothing happened