Тёмный

Unity C# Bitesize - Interfaces - (Intermediate) 

Dapper Dino
Подписаться 60 тыс.
Просмотров 4 тыс.
50% 1

Join Our Community: student.dapper...
-----------------------------------------------------------------------------------------------------------
Just Here To Plug My Social Media Stuff:
/ dapperdino
/ dapper_dino
/ dapperdino4
/ dapper-codin. .
github.com/Dap...
/ discord
-----------------------------------------------------------------------------------------------------------
If you liked the video then please respond with a like and a subscribe to show your support for the channel and I'll repay you by creating more tutorials for you to enjoy :D

Опубликовано:

 

9 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@BekaDemuradze
@BekaDemuradze 4 года назад
I just want to say one thing, the amount of job you are doing for us is unmeasurable. You deserve more viewers but frankly RU-vid algorithms work on trash video side. But keep in mind, many of the games you will encounter in the future, will have your videos as a foundation and you should be proud of it. Please keep this job !
@JoelSoulweaver
@JoelSoulweaver 4 года назад
This is one of the better videos on Interfaces I've seen. The usage of TryGetComponent was especially enlightening. I'd love to see a much more advanced use case for interfaces. Almost every video I've ever seen has used the IDamageable example. If you're up to exploring the concept further, I'd absolutely be there for that.
@TiDuZzO
@TiDuZzO 3 года назад
this series is much better and cleaner than the others you've already publish. If you still get suggestions for what's next, and this is a noob one... I find difficult using class for stuff like "change variable from another script" or... Create a new class and assigning to a new instantiate prefab game object and change variable individually for each one. For example imagine I instantiate 5 buttons, I want to apply a variable of some kind for each instantiated button, because if I click on one of those prefab the value change to true or to 1 and right after I run a check like "if there are 3 true one next to eachother than destroy those instantiate game object or change some other component like the sprite renderer"... So basically I've been watching tutorial for over a month now but I still couldn't find a nice explanation on how dynamically interact between script, class or/and gameobject... If you can work on this it would be great for many of us that struggle more on basic stuff rather than intermediate one like properties... Or events... Or even interfaces... Sounds weird but I know them better since there are plenty of video about that already and 0 video instead for concept like this that seems to be granted or too basic to be mention...
@mofodumbas
@mofodumbas 3 года назад
Wow... I was looking for some pratical usage of interfaces! I already had a basic knowledge but I was not sure about using Interfaces because of lack of pratical examples. Now it became clear! Thanks a lot
@cptlancia7547
@cptlancia7547 4 года назад
Absolutely love these bitesized gamedev focused programming lessons! :D Looking forward to see what else I can learn from you. I'd like to see even more intermediate level stuff. Would it be fair to say Interfaces are kind of like unity's tag system? It seems to me to be a way to mark a script so that other scripts can know what behaviour it has. Is there a reason not to use unity's tags instead of interfaces?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
With Unity's tags you can only have 1 which is a problem. I guess you can kind of see interfaces as tags but there are also other possible approaches depending on your game that I will be covering as we continue.
@cptlancia7547
@cptlancia7547 4 года назад
@@DapperDinoCodingTutorials Looking forward to it in that case!
@banana_Toast
@banana_Toast 4 года назад
Finallly I understand them and now I realize my try on using the was somewhat wrong and honeltly as bad as using hundrets of ifs I woll go and update all my stuff now.
@spiccymayonnaise4194
@spiccymayonnaise4194 4 года назад
Great video! What would be the benefits of using an interface for a damageable script as opposed to using inheritance and overriding for custom logic?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
Interfaces are more flexible because they can be implemented on any class. Whereas with inheritance all the classes that want to work will have to inherit that base. (You can implement many interfaces but only inherit one class)
@ewwitsantonio
@ewwitsantonio 4 года назад
Very helpful. Thank you!!
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
Glad I could help!
@perparmiha
@perparmiha 4 года назад
Maybe a video on VS shortcuts or other tips/tricks like that
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
I'll consider it but I don't actually use that many shortcuts really. I really only use ctrl+k, ctrl+d to auto format the code.
@orangeplane8231
@orangeplane8231 4 года назад
niceeee
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
Noiceeee
@orangeplane8231
@orangeplane8231 4 года назад
Dapper Dino im trying to make a vehicle in my fps game but im not sure how to start, how should i do it?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
I have never personally made any vehicles in my games before but this seems to be a good video explaining how to set it up: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-j6_SMdWeGFI.html
@angeltrujillo426
@angeltrujillo426 4 года назад
Hi Good tutorial, you could put the titles with enumeration, that is to say, 005 Unity C # Bitesize and so on, a greeting,
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
The reason I haven't done that is because they are all standalone videos and don't necessarily keep increasing in difficulty. Some will be beginner, some intermediate, some advanced. If there's anything I'm reusing between videos I'll still go through it like I did in this one :)
@wambatly
@wambatly 4 года назад
Hi, Sorry for me being here so late, I was wondering If i could possibly get the code for the FPS tutorial you made way-back when. It doesn't appear to be on GitHub. Thanks for your time.
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
I didn't use GitHub back then so my older projects aren't available. All the projects you see on there now are the ones you can gain access to :)
@mrs.a9715
@mrs.a9715 4 года назад
Well when the tutorial about scoreboard or health bar is coming? Showing all clients health in list, btw thnx for the video
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
You're on about multiplayer right? Tomorrow's vid will be for Multiplayer so we'll be working towards that. But before UI we need to actually make the logic for attacking and dealing damage.
@mrs.a9715
@mrs.a9715 4 года назад
W8ing, thnx in advance ur BiteSize Properties tutorial was awesome
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
Glad you found it useful :D
@bunnybreaker
@bunnybreaker 4 года назад
Interfaces are great, but the lack of inspector visibility hurts them. I know there are "reasons" for this, but I'm curious how actual devs work around this in reality.
@DanTheMann1218
@DanTheMann1218 4 года назад
I personally use Odin Inspector to serialize interfaces, but Odin Inspector is not free. I would only recommend it if you're serious about using Unity, but I do recommend it highly, more than any other asset I've purchased. Another option is to use the [SerializeReference] attribute for variables, but that only works for objects that don't inherit from UnityEngine.Object (which is probably a deal-breaker for most people) and to add instances, you'd need a custom inspector script. I am not paid to advertise their product, but again, Odin Inspector can do all this and saves the hassle of interface serialization.
@bunnybreaker
@bunnybreaker 4 года назад
@@DanTheMann1218 Hey, thanks for the detailed response. I actually have Odin, but haven't really used it, so I'll definitely try using it like this.
@DanTheMann1218
@DanTheMann1218 4 года назад
@@bunnybreaker Definitely check it out! The SerializedMonoBehaviour and SerializedScriptableObject classes in particular open up lots of editor functionality. Just be sure that everything you do in Odin still meets the needs for your target platform, because Odin's custom serialization may not work for some platforms.
@bunnybreaker
@bunnybreaker 4 года назад
@@DanTheMann1218 Good to know. I'll keep that in mind as sometimes I target WebGL. Thanks again. You got any games released or in development I should check out?
@DanTheMann1218
@DanTheMann1218 4 года назад
@@bunnybreaker I mostly develop on Unity as a hobby and I'm not committed to releasing a full game yet, but if one of my prototypes goes far enough where I can make a game, I'll definitely share it! If I forget to post here, it'll probably pop up on the Unity3D, gamedev, or indiegames subreddit.
Далее
What are Interfaces? (C# Basics)
13:54
Просмотров 209 тыс.
Changing The Flag Of The Countries #countryballs
00:18
The Flaws of Inheritance
10:01
Просмотров 951 тыс.
Unity C# Bitesize - Gizmos - (Beginner)
7:26
Просмотров 3,6 тыс.
Performance in Kotlin
6:08
Просмотров 1 тыс.
Interface Damage
11:15
Просмотров 14 тыс.
Unity UI Toolkit in 5 Minutes
5:47
Просмотров 121 тыс.
How principled coders outperform the competition
11:11
What is Span in C# and why you should be using it
15:15