How to ACTUALLY Use INTERFACES in UNITY in 3 MINUTES

Поділитися
Вставка
  • Опубліковано 28 чер 2024
  • interfaces be like
    // Source Code // github.com/N-8-D-e-v/Unity-Tu...
    ---------------------------------------------------------------------------
    /// LINKS ///
    // Discord // / discord
    // Twitter // / n8dev_yt
    // My Isometric Mobile Game // • Playlist
    ---------------------------------------------------------------------------
    /// TIMESTAMPS ///
    0:00 an example of WHEN to use interfaces :0
    0:45 WHAT is an interface? ;0
    1:22 making our original example BETTER wowowowoow
    2:00 why this is so GOOD :D
    2:19 BAD stuff D:
    2:39 interfaces OR inheritance? ;|
    2:49 outro haha ;)
    ---------------------------------------------------------------------------
    /// MY STUFF ///
    // Game Engine - Unity 3D // unity.com/​
    // IDE - Jetbrains Rider // www.jetbrains.com/rider/​
    // Art Software - Adobe Illustrator, Adobe Photoshop // www.adobe.com/products/illust... www.adobe.com/products/photos...
    // DAW - FL Studio // www.image-line.com/​
    // Sound Editor - Adobe Audition // www.adobe.com/products/auditi...
    // Video Editor - Adobe Premiere Pro, Adobe After Effects // www.adobe.com/products/premie... www.adobe.com/products/aftere...
    // Microphone - Blue Yeti X // www.bluemic.com/en-us/product...
    ---------------------------------------------------------------------------
    music from the UA-cam Audio Library :)
  • Наука та технологія

КОМЕНТАРІ • 143

  • @coolp7493
    @coolp7493 3 роки тому +21

    I can’t think of something interesting, so uhhhh just gonna say that
    N8dev is the interface s i m p

    • @n8dev
      @n8dev  3 роки тому +6

      oh yes

  • @MujjMujj
    @MujjMujj 3 роки тому +11

    Damn this is one of the clearest tutorials I’ve seen on interface use so far

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @AndrewDavidJ
    @AndrewDavidJ 3 роки тому +12

    FYI: You can write a custom editor script to make the interface appear in the Unity inspector :)
    And if you're not good at writing editor scripts, there are handy tools/assets out there that already do that for you, like Odin Inspector!
    EDIT:
    Forgot to tag all the "hovering fingers" timestamps:
    1:45
    2:01
    2:19
    2:47

    • @n8dev
      @n8dev  3 роки тому +1

      Yup! You're right, I probably should've included that haha. I ought to try Odin Inspector at some point, I've had lots of people recommend it to me

    • @walterh2113
      @walterh2113 3 роки тому +2

      You don't need to.
      You can just use {SerializeReference]
      Edit: Well not in this case because it doesn't handle Unity's types, but for non-MonoBehaviour Interfaces it works great.

  • @whaive
    @whaive 3 роки тому +2

    Man, your channel is really underrated! You have really good quality videos! :D

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

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

    This has to be the best Interface tutorial on UA-cam. It's clear and goes straight to the point

  • @spxctreofficial
    @spxctreofficial 3 роки тому +2

    I've never used interfaces in a useful manner before so this tutorial really clears some things up! Great tutorial as always!

    • @n8dev
      @n8dev  3 роки тому +1

      thanks!

  • @eugeneyaptangco7735
    @eugeneyaptangco7735 3 роки тому +5

    pre-premiere comment: i needed this thank you

    • @n8dev
      @n8dev  3 роки тому

      haha np, hopefully I don’t go too fast LOL

  • @HadiLePanda
    @HadiLePanda 3 роки тому +1

    I enjoyed this video! I grasped the concepts easily and the rule for inheritance and interface is a nice tip, thanks. I'd like to see more content like this! :)
    One thing that disturbed me a little was the transition screen, for me at least it cut my focus between each screen.

    • @n8dev
      @n8dev  3 роки тому

      thanks! I appreciate the feedback as well :)

  • @JamesMakesGamesYT
    @JamesMakesGamesYT 3 роки тому +1

    Great video! Always nice to see videos showcasing good software engineering practises in game dev

    • @n8dev
      @n8dev  3 роки тому

      thanks!

  • @legends389
    @legends389 3 роки тому +1

    That was very useful didn't know you can do that in unity, and congrats on 2k subs you just earned a twitter follow

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @Tarnest
    @Tarnest 3 роки тому +2

    No wonder this has zero dislikes. This is the best explanation I’ve ever seen on interfaces.

    • @n8dev
      @n8dev  3 роки тому +1

      I'm really glad this helped you :D

  • @tauheedgamedev2388
    @tauheedgamedev2388 3 роки тому +1

    Awesome vid and congrats on hitting 3k subs

    • @n8dev
      @n8dev  3 роки тому

      thanks!

  • @Demizo
    @Demizo 3 роки тому +1

    glad to see the algorithm giving you the love that you deserve! also great and quick tutorial

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @RedPandaJr
    @RedPandaJr 3 роки тому +3

    Dude i just found your channel and you are LEGIT so i subscribed

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @x10creeper52
    @x10creeper52 3 роки тому +1

    Every java student should watch this video
    Short, informative and straight to the point
    The only thing that I found strange were the "hands on the keyboard" clips like the one at 2:02 , those just felt like they're not well-made
    9/10

    • @n8dev
      @n8dev  3 роки тому +1

      thank you so much! I make it a point to include that "hands on the keyboard" clip as sort of an easter egg in every video, but thank you for the feedback and for your kind words!

    • @x10creeper52
      @x10creeper52 3 роки тому +1

      @@n8dev no biggie, I was just nitpicking
      Keep up the good work 👍

    • @n8dev
      @n8dev  3 роки тому

      @@x10creeper52 :)

  • @cantwait2bking544
    @cantwait2bking544 3 роки тому +1

    Another nice tutorial, N8!

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @ihavenoideabuddy
    @ihavenoideabuddy 3 роки тому +1

    You're one of the best youtubers I ever seen. You're nice, and you also reply to every comment!

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @osmium2944
    @osmium2944 3 роки тому +2

    Hey, Your Videos looks really great, but there is some improvement you can make to grow up faster:
    1- Make shorter title -> Most of your video will be seen by mobile user (85%), so if your title is too long they wont see it.
    2- Your title need to either have no caps character at all or 1 for the first letter of each Word. So it will get more attention. Not random word x)
    3- Include number in your title, it will get more attention.
    4- Make video about something with an end goal.
    Eg.: Dani's video's end goal is the game,
    Minecraft in 48h videos is also the game,
    Mr. Beast videos end goal usually are something like: Will he succeeds or will he win ...
    You have a huge potential.

    • @n8dev
      @n8dev  3 роки тому +1

      I appreciate your comments :)

  • @eddie.z
    @eddie.z 3 роки тому +1

    interfaces are epicc, thanks!

  • @samyam
    @samyam 3 роки тому +1

    nice video! 👏

    • @n8dev
      @n8dev  3 роки тому

      thanks sam :D

  • @ludvigstorm3972
    @ludvigstorm3972 3 роки тому +1

    AWESOME VID :D

    • @n8dev
      @n8dev  3 роки тому

      THANKS :D

  • @sohrabhamza3805
    @sohrabhamza3805 3 роки тому +1

    Wow thanks for this!

    • @n8dev
      @n8dev  3 роки тому

      I’m glad it helped :)

  • @oekt7834
    @oekt7834 3 роки тому +1

    This was so useful thank you

    • @n8dev
      @n8dev  3 роки тому

      I'm glad it was helpful!

  • @focat
    @focat 3 роки тому +2

    Thank you so much! I went from 821 lines to 799!

    • @n8dev
      @n8dev  3 роки тому

      yay! I’m glad this helped

    • @focat
      @focat 3 роки тому +2

      @@n8dev it did :D

  • @luk7061
    @luk7061 3 роки тому +1

    Nice video subscribed.

    • @n8dev
      @n8dev  3 роки тому

      love that

  • @Berlm
    @Berlm 3 роки тому +1

    for default implementations, you use an abstract class. IIRC, even in .net 5 and c# 9, you cannot have a default implementation (that's the point of an abstract class, and an interface)

    • @n8dev
      @n8dev  3 роки тому

      yup! :D

  • @fennecfugames
    @fennecfugames 3 роки тому +1

    Omg thank you so much for this 😭😭

    • @n8dev
      @n8dev  3 роки тому +1

      no, thank YOU

  • @B8Code
    @B8Code 3 роки тому +2

    Lets go a tuts video from Nate ,

    • @n8dev
      @n8dev  3 роки тому

      yesssss

  • @mado7k846
    @mado7k846 3 роки тому +1

    Quality video like always

    • @n8dev
      @n8dev  3 роки тому +1

      thanks :D

  • @arjun_3345
    @arjun_3345 3 роки тому +2

    sheeeeesh

    • @n8dev
      @n8dev  3 роки тому

      sheeeeeeeeeeeesh

  • @WarThrone
    @WarThrone 3 роки тому +2

    congrats on 2.71k :D

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @mizpah_dev
    @mizpah_dev 3 роки тому +1

    Mad respect for always replying to comments even if they get upto a thousand✊

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @itsME-dc4vm
    @itsME-dc4vm 3 роки тому +2

    nice ;D

    • @n8dev
      @n8dev  3 роки тому

      thanks ;D

  • @luak4303
    @luak4303 3 роки тому +2

    I’m gonna need this

  • @creationgamers
    @creationgamers 3 роки тому +1

    So it's all hacker man stuff that goes above my head

  • @barj
    @barj 3 роки тому +1

    Yoooooo

    • @n8dev
      @n8dev  3 роки тому

      yooooooo

  • @emmavdev
    @emmavdev 3 роки тому +1

    I know what Interfaces are etc but that was a good tutorial anyways!

    • @n8dev
      @n8dev  3 роки тому

      thanks :D

  • @Reeemonster2000
    @Reeemonster2000 3 роки тому +4

    Hoi

  • @Ryan-ww7un
    @Ryan-ww7un 3 роки тому +1

    I'd be helpful if you left the script correction text up on screen for just a bit longer :)

    • @n8dev
      @n8dev  3 роки тому

      yeah haha I went way too fast, the source code is in the description, but that may not be what you’re looking for

  • @johnrasc6544
    @johnrasc6544 3 роки тому +2

    N I C E

  • @Random-kj1go
    @Random-kj1go 3 роки тому +1

    Pls make longer vids
    Edit: just noticed that the file is called villager😂

    • @n8dev
      @n8dev  3 роки тому +1

      yes haha I'll make them longer

  • @rogancliphub
    @rogancliphub 3 роки тому +2

    1 word: duck

    • @n8dev
      @n8dev  3 роки тому

      quack quack

  • @WallJumpGames
    @WallJumpGames 3 роки тому +1

    Haha this video is already outdated, before it came out, gj on 2k :)

    • @n8dev
      @n8dev  3 роки тому

      haha yeah I was at 1k when I recorded the audio, thanks :D

  • @hutimaru
    @hutimaru 3 роки тому +1

    I have to say it
    Iiiiiiiii miiiiiiiisss youuu

  • @HDCairnsAviation
    @HDCairnsAviation 3 роки тому +1

    Legend has it that N8Dev will heart and pin your comment.

  • @bestreach2952
    @bestreach2952 3 роки тому +1

    You should make tutorials :DD

    • @n8dev
      @n8dev  3 роки тому

      haha we'll see ;)

  • @arjun_3345
    @arjun_3345 3 роки тому +2

    Here before 100k gang

    • @n8dev
      @n8dev  3 роки тому

      haha I’d love to get there one day

  • @alphaanar2651
    @alphaanar2651 3 роки тому +2

    ***MOTIVATING COMMENT***
    Yo Nate, are you motivated now?

    • @n8dev
      @n8dev  3 роки тому +1

      I am very motivated now LOL

    • @alphaanar2651
      @alphaanar2651 3 роки тому +2

      @@n8dev ;)

  • @n8programs733
    @n8programs733 3 роки тому +5

    DUCK TYPIGN REEEEEEEE

  • @justloaf4050
    @justloaf4050 3 роки тому +1

    gg ez

    • @n8dev
      @n8dev  3 роки тому +1

      lesss goooooooo

  • @sythatsokmontrey8879
    @sythatsokmontrey8879 3 роки тому +1

    Cool video, but can I know the font you use.

    • @n8dev
      @n8dev  3 роки тому +1

      thanks! I use an adobe font called paralucent heavy

    • @sythatsokmontrey8879
      @sythatsokmontrey8879 3 роки тому +1

      Thanks you so much.

  • @Max-mx5yc
    @Max-mx5yc 3 роки тому +1

    Why do Interfaces not support properties and method bodies (default implementations) in Unity? I thought that Unity uses C# 8, can someone clear this up for me?

    • @n8dev
      @n8dev  3 роки тому

      Unity uses .NET standard 2.0, and to have default interface implementation they need something higher than 2.0 I believe :)

    • @Max-mx5yc
      @Max-mx5yc 3 роки тому +1

      @@n8dev Ah I see, didn't check what version of .NET they were using. Thanks! :)

    • @n8dev
      @n8dev  3 роки тому

      @@Max-mx5yc happy to help :D

  • @franbanz1589
    @franbanz1589 3 роки тому +1

    What laptop do you use?

    • @n8dev
      @n8dev  3 роки тому

      a dell inspiron :)

  • @alexanderdorenkamp
    @alexanderdorenkamp 3 роки тому +1

    Make more vids :)

    • @n8dev
      @n8dev  3 роки тому

      I will :D

  • @kiw.
    @kiw. 3 роки тому +1

    What is the software you use to code ?

    • @n8dev
      @n8dev  3 роки тому

      jetbrains rider :D

    • @kiw.
      @kiw. 3 роки тому +1

      @@n8dev thanks:)

  • @eilam9999
    @eilam9999 3 роки тому +1

    do you have this more faster?
    thanks anyway

    • @n8dev
      @n8dev  3 роки тому

      haha np

  • @roadtomillion9499
    @roadtomillion9499 3 роки тому +1

    Hi

  • @AttachmentStudios
    @AttachmentStudios 3 роки тому +2

    cool but now you have 2.5K Subs
    Me at 57 or so

    • @n8dev
      @n8dev  3 роки тому +1

      yeah haha I recorded the audio before that happened ;)

  • @turbothugg
    @turbothugg 3 роки тому +1

    /e pin

  • @noobcraft5712
    @noobcraft5712 3 роки тому +2

    Do you like attack on titan :)

    • @n8dev
      @n8dev  3 роки тому

      I haven't seen it :(

    • @noobcraft5712
      @noobcraft5712 3 роки тому +1

      @@n8dev it's a great anima

    • @n8dev
      @n8dev  3 роки тому

      @@noobcraft5712 will have to watch it then :D

  • @keineahnung1919
    @keineahnung1919 3 роки тому +1

    dude WTF are your coding conventions...

    • @n8dev
      @n8dev  3 роки тому

      everything is .NET standard, and except I differentiate local variable from parameters with a double underscore

    • @keineahnung1919
      @keineahnung1919 3 роки тому +1

      @@n8dev the double underscore is mindly infuriating to me

    • @n8dev
      @n8dev  3 роки тому

      sorry haha, but it’s useful to be able to differentiate local variables from parameters at first glance, and it works great for me
      at least I’m not using snake case 🤮

  • @TheBigMug
    @TheBigMug 3 роки тому +1

    to fast for a tutorial hehe,great video though awesome explanation

    • @n8dev
      @n8dev  3 роки тому

      haha, thank you for your feedback ;)

    • @TheBigMug
      @TheBigMug 3 роки тому +1

      np, again man watched this 10 times, its sooo good

    • @n8dev
      @n8dev  3 роки тому

      :D