Player Object Interaction In Unity For Beginners

Поділитися
Вставка
  • Опубліковано 21 лют 2022
  • Today add Player-Object Interaction into unity with only a few simple lines of code!
    Check Out Updated Better Video : • Interacting With Objec...
    Join Our Discord :
    / discord
    Support Me On Patreon: / joerickwooddev
    Supporting Me On Patreon unlocks project downloads and Patreon shoutouts.
    Check Out The Player Controller Series :
    • FPS Controller Series
  • Ігри

КОМЕНТАРІ • 26

  • @KM-dh4st
    @KM-dh4st Рік тому +6

    Thanks for the video. It was very easy to follow and mentioning the small things (like right-clicking to make transition) helps a lot!

  • @toofygrin-
    @toofygrin- 2 роки тому +1

    nice video bro!

  • @UnlegitDqrk
    @UnlegitDqrk 2 роки тому +2

    0:40 My Animations in all of my games when i Setup the animations 😂

  • @Himura_PN
    @Himura_PN 2 роки тому +4

    🙏thank you this helped me a lot👏

  • @samuelsiado5270
    @samuelsiado5270 Рік тому +1

    Amazing video bro

  • @Fronklyn.
    @Fronklyn. 9 місяців тому

    Thank you for this anyway I can add sound to the door?

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

    UnassignedReferenceException: The variable cam of Interactor has not been assigned.
    You probably need to assign the cam variable of the Interactor script in the inspector.

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

    After awhile of getting mad that It woulndt work, I finally realized I never put a Collider on the object. Besides that Thank you so much this helped.

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

      It's often simple things which we miss isn't it!, thanks for the kind words!

  • @williamdev25
    @williamdev25 8 місяців тому +1

    for some reason the "gameObject" part from 4:52 to 5:27 comes as an error, please help if you can!
    edit: nvm i changed it to transform and it worked out!

  • @Heliaclay
    @Heliaclay 8 місяців тому +1

    can you please put the code in the description, some of the stuff you did in the video wasn't lining up with my visual studio. for example: the private void update part

    • @joerickwood
      @joerickwood  8 місяців тому +2

      im sorry, I don't quite think I understand what your saying, everything I wrote in this video was done on camera, also me just putting code in the description dosnt teach people anything other than to copy paste

  • @asyncthevoid
    @asyncthevoid 11 місяців тому

    Thank you also how did you get your vs code to work like vs with the auto completion and the colors

    • @joerickwood
      @joerickwood  11 місяців тому

      Extensions

    • @asyncthevoid
      @asyncthevoid 11 місяців тому

      @@joerickwood which ones I added the C# one and it does not work correctly for some reason

    • @joerickwood
      @joerickwood  11 місяців тому

      @@asyncthevoid I have c#, and unity code snippets

    • @asyncthevoid
      @asyncthevoid 11 місяців тому

      @@joerickwood sure seems like a problem on my end then because it says it it could not find .net core and I've tried to fix by doing a lot of things but nothing has worked

  • @TheGnomic32
    @TheGnomic32 5 місяців тому +1

    when I write out the code I get an error message saying 'RaycastHit' does not contain a definition for 'Transform' how can I fix this?

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

      transform not Transform, transform is a local reference whereas Transform is the class

    • @TheGnomic32
      @TheGnomic32 5 місяців тому +1

      its always the small things, thank you lots@@joerickwood

  • @ItzFraWhite
    @ItzFraWhite 8 місяців тому +1

    Ehy I'm a bit late but for some reason the code doesn't work and it doesn't apply to the player.
    I followed all the instructions but I couldn't understand what's the problem behind my code.. anyway
    thanks a lot again for the video!

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

      same problem here

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

      debugging with Debug.Log in different spots will help you be able to find out what the problem is alot easier, chances are, its either different numbers im using compared to you, or, it could be objects not being on the right layers.