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 :) - Наука та технологія
I can’t think of something interesting, so uhhhh just gonna say that
N8dev is the interface s i m p
oh yes
Damn this is one of the clearest tutorials I’ve seen on interface use so far
thanks :D
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
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
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.
Man, your channel is really underrated! You have really good quality videos! :D
thanks :D
This has to be the best Interface tutorial on UA-cam. It's clear and goes straight to the point
I've never used interfaces in a useful manner before so this tutorial really clears some things up! Great tutorial as always!
thanks!
pre-premiere comment: i needed this thank you
haha np, hopefully I don’t go too fast LOL
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.
thanks! I appreciate the feedback as well :)
Great video! Always nice to see videos showcasing good software engineering practises in game dev
thanks!
That was very useful didn't know you can do that in unity, and congrats on 2k subs you just earned a twitter follow
thanks :D
No wonder this has zero dislikes. This is the best explanation I’ve ever seen on interfaces.
I'm really glad this helped you :D
Awesome vid and congrats on hitting 3k subs
thanks!
glad to see the algorithm giving you the love that you deserve! also great and quick tutorial
thanks :D
Dude i just found your channel and you are LEGIT so i subscribed
thanks :D
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
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!
@@n8dev no biggie, I was just nitpicking
Keep up the good work 👍
@@x10creeper52 :)
Another nice tutorial, N8!
thanks :D
You're one of the best youtubers I ever seen. You're nice, and you also reply to every comment!
thanks :D
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.
I appreciate your comments :)
interfaces are epicc, thanks!
:D
nice video! 👏
thanks sam :D
AWESOME VID :D
THANKS :D
Wow thanks for this!
I’m glad it helped :)
This was so useful thank you
I'm glad it was helpful!
Thank you so much! I went from 821 lines to 799!
yay! I’m glad this helped
@@n8dev it did :D
Nice video subscribed.
love that
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)
yup! :D
Omg thank you so much for this 😭😭
no, thank YOU
Lets go a tuts video from Nate ,
yesssss
Quality video like always
thanks :D
sheeeeesh
sheeeeeeeeeeeesh
congrats on 2.71k :D
thanks :D
Mad respect for always replying to comments even if they get upto a thousand✊
thanks :D
nice ;D
thanks ;D
I’m gonna need this
love that
@@n8dev SO DO I
So it's all hacker man stuff that goes above my head
LOL
Yoooooo
yooooooo
I know what Interfaces are etc but that was a good tutorial anyways!
thanks :D
Hoi
heyoo
@@n8dev :)
I'd be helpful if you left the script correction text up on screen for just a bit longer :)
yeah haha I went way too fast, the source code is in the description, but that may not be what you’re looking for
N I C E
T H A N K
@@n8dev o_o C OO L
Pls make longer vids
Edit: just noticed that the file is called villager😂
yes haha I'll make them longer
1 word: duck
quack quack
Haha this video is already outdated, before it came out, gj on 2k :)
haha yeah I was at 1k when I recorded the audio, thanks :D
I have to say it
Iiiiiiiii miiiiiiiisss youuu
LOL
Legend has it that N8Dev will heart and pin your comment.
;)
You should make tutorials :DD
haha we'll see ;)
Here before 100k gang
haha I’d love to get there one day
***MOTIVATING COMMENT***
Yo Nate, are you motivated now?
I am very motivated now LOL
@@n8dev ;)
DUCK TYPIGN REEEEEEEE
LOL
gg ez
lesss goooooooo
Cool video, but can I know the font you use.
thanks! I use an adobe font called paralucent heavy
Thanks you so much.
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?
Unity uses .NET standard 2.0, and to have default interface implementation they need something higher than 2.0 I believe :)
@@n8dev Ah I see, didn't check what version of .NET they were using. Thanks! :)
@@Max-mx5yc happy to help :D
What laptop do you use?
a dell inspiron :)
Make more vids :)
I will :D
What is the software you use to code ?
jetbrains rider :D
@@n8dev thanks:)
do you have this more faster?
thanks anyway
haha np
Hi
heyoo
cool but now you have 2.5K Subs
Me at 57 or so
yeah haha I recorded the audio before that happened ;)
/e pin
m
Do you like attack on titan :)
I haven't seen it :(
@@n8dev it's a great anima
@@noobcraft5712 will have to watch it then :D
dude WTF are your coding conventions...
everything is .NET standard, and except I differentiate local variable from parameters with a double underscore
@@n8dev the double underscore is mindly infuriating to me
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 🤮
to fast for a tutorial hehe,great video though awesome explanation
haha, thank you for your feedback ;)
np, again man watched this 10 times, its sooo good
:D