Assembly Definitions in Unity

  Рет қаралды 77,904

Infallible Code

Infallible Code

Күн бұрын

Пікірлер: 216
@chrisc7265
@chrisc7265 4 жыл бұрын
I don't even use Unity, I just like hearing this guy be nice to himself
@xskybirdx
@xskybirdx 2 жыл бұрын
yeah seriously! it's a bizarre format and I love it
@0xF81
@0xF81 Жыл бұрын
Lmao
@TheLazyEngineer
@TheLazyEngineer 4 жыл бұрын
we're lucky that Charles is so nice and didnt just say "ok" at 0:23 causing the vid to end!
@benjamingerd4703
@benjamingerd4703 3 жыл бұрын
Thank you kindly! This has helped me reduce my game's compile time from "This takes so long, I don't enjoy working on this game anymore" back to "This is so much fun again, just like back in the old days when my project used to be small".
@keyay1239
@keyay1239 4 жыл бұрын
Oh man, this format really skyrockets the entertainment of your video. While it is still a tutorial, it doesn't bore me at all, maybe actually the opposite. Really a genius idea to keep the viewer attracted.
@In-N-Out333
@In-N-Out333 4 жыл бұрын
Another episode of 'The Schizophrenic Programmer'.
@InfallibleCode
@InfallibleCode 4 жыл бұрын
🤪
@RyRyQTPi
@RyRyQTPi 4 жыл бұрын
I loved this video. Short and informative. Also very entertaining to watch haha 😅👌
@peterhayman
@peterhayman 4 жыл бұрын
Me: Yea should I be worried if I start talking to myself like this? Other Me: Not at all! The technique of projecting inner monologues onto dialogues between 'make-believe' characters is ancient and used by the likes of Plato in his dialectics.
@lobsangwhite
@lobsangwhite 4 жыл бұрын
This is my style of programtion, first I talk to myself helping me to answer all my questions and keep me in company all the process... later we both start crying about all that messy code and our loneliness. It's beautiful. Btw, I love this tutorial ❤
@lobsangwhite
@lobsangwhite 4 жыл бұрын
I was thinking, what about this third-party code? I mean, I use a lot Leantween but if I put my UI scripts into an assembly leantween stay into the default assembly and it's not possible to make a dependency. Or am I wrong?
@di4352
@di4352 2 жыл бұрын
What a satisfyingly casual and straight-forward conversation about code organization in Unity between two pleasant and completely unrelated individuals :D.
@fawazaljohani8447
@fawazaljohani8447 4 жыл бұрын
Dude, this is hands down one the best tutorial videos out there, not just about the subject, the way you present and explain the tutorial is super creative and even though I just watched the video cuz i saw it in the subscription tab and wasn't really interested in the subject, I completed the whole thing, RING BILL IS ON FROM NOW ON
@m4xxxxxxxx-d7i
@m4xxxxxxxx-d7i 2 жыл бұрын
It does not make one feel sleepy.
@samwholearns3023
@samwholearns3023 2 жыл бұрын
You and the 2 Jsons are fucking amazing. I have gone from zero to hero in around 4 months with 3 projects due to the content each of you puts out regarding code, architecture and best practices. Man I can't believe how far I have come this fast. Still a beginner but I am now helping other beginners and I can see that I am dipping my toes regularly into the intermediate waters. The Journey amazing. Sometimes I get goosebumps when I am coding and I realize I did something organically that I saw when I was brand new and had no idea what was going on.
@fulongfromthegrave
@fulongfromthegrave 4 жыл бұрын
I think the vids fill two puposes: teach you awesome code, while serving as PSAs on how to treat colleagues at the office (how to ask for/offer help to a colleague). xD
@hanzhang4592
@hanzhang4592 3 жыл бұрын
This form of explanation is so cool, I am feeling like you ask every question that I care about!!!
@marche4ever
@marche4ever 3 жыл бұрын
I would love to see a video on how to design good assembly definitions for games. This is one of those things where I know what it is, what it's used for, but not sure how to utilize it properly in a real-world setting.
@LautaroArino
@LautaroArino 2 жыл бұрын
I know this is old but here is something i learned. One of the reasons this method is helpful is when you realise you need to sit down and thing about what your project needs and how you would structure the different subsystems. If you cant figure it out maybe you just need to try and then learn from mistakes? After a few projects you will have a clear feeling about how you wished you would have done from the beginning. So think about these techniques but dont let it keep you from progressing as a game coder! ITs possible to stay in the system design phase for ever and thats not productive either.
@rxninja
@rxninja Жыл бұрын
I just want to say that this is the first tutorial I haven't watched on greater than 1.0x speed in a very, very long time. Everything was clear and concise. Thank you!
@alexbrandt
@alexbrandt 2 жыл бұрын
Man, this format is a great way to go through a topic like this. I work in simulation and have a ton of calls like this about complicated topics, but mine come with interruptions, dead ends that the person might not be knowledgeable about, and other tangents. This really takes a conversation like that and cuts out the useless info to deliver the information in a way that is conversational, easy to digest, and to apply to your work. Well-earned sub, awesome content.
@MaxKearneyFilms
@MaxKearneyFilms 3 жыл бұрын
this kind of format usually is pretty cringe but this was super helpful to understanding assembly definitions. The guy with the cap asks all the questions I would want to ask haha, thanks a bunch
@danigarciafernandez8908
@danigarciafernandez8908 3 жыл бұрын
Just found your channel while researching about Unity's assembly definitions. Quite an original and clear way to explain the topic. Great video!
@InfallibleCode
@InfallibleCode 3 жыл бұрын
Awesome, thank you!
@betterlifeexe4378
@betterlifeexe4378 3 жыл бұрын
I literally just pulled up that page in the beginning and said in my head, "this is confusing" , then went on youtube and searched assemblies in unity and got this video.
@InfallibleCode
@InfallibleCode 3 жыл бұрын
Did the video clear up your confusion?
@betterlifeexe4378
@betterlifeexe4378 3 жыл бұрын
​@@InfallibleCode yep, what I really wanted to know is what the default assembly Included and you pointed it out in the solution explorer. I wanted to know because internal is scoped to the assembly, and in order to use it intelligently, I had to know what that scope included. Would I be right in guessing that internal is fairly secure so long as your app isn't exposed directly to something like code injection? Does it protect against window hooks? I still have security questions.
@AvoidingCrisis
@AvoidingCrisis 4 жыл бұрын
Why is this format so soothing and entertaining?? Such an amazing idea
@NoStupidItsManbearpig
@NoStupidItsManbearpig 8 ай бұрын
Great explanation thank you. And I liked your approach showing 2 sides to this conversation. When I was a Junior coder I found it intimidating to ask these sorts of questions but they are very important and just like in your video 9 times out of 10 the other person or code lead will take time out of their day for you. Iv worked in the games industry for 5 years now and only just discovered Assembly Definitions. Subbed to your channel :)
@moose43h
@moose43h 3 жыл бұрын
bro this is relaxing af because its not robotic
@kirbymia6209
@kirbymia6209 3 жыл бұрын
This guy's channel really shows how helpful programmers should be to each other.
@truthByFire
@truthByFire 4 жыл бұрын
Love these tutorials - great style and easy to follow
@shubhamsati3145
@shubhamsati3145 2 жыл бұрын
Man your way of teaching is refreshing. I really love it.
@RicardoEP
@RicardoEP 2 жыл бұрын
Had no idea what i was getting into listening to this converzation kinda tutorial. But damn I loved every bit of it.
@joaniepepin4968
@joaniepepin4968 4 жыл бұрын
Man, you really are getting lonely during the lockdown, making Skype calls with yourself like that!
@jorhoto7064
@jorhoto7064 4 жыл бұрын
They are twins :)
@lemetamax
@lemetamax 4 ай бұрын
This is really cool! I'll start using assemblies from now on.
@Pojath
@Pojath Жыл бұрын
This guy needs more subscribers. Thanks for explaining everything in an easy manner to understand!
@honeybee6978
@honeybee6978 4 жыл бұрын
You look so natural with coding. Did you ever had a time where you also make beginner mistakes? (Like I do everyday)
@makra2077
@makra2077 4 жыл бұрын
Always love your intuitive approach to making tutorials sir 🔥 I try making videos like you for my channel but eventually fail. Can you please give me some tips sir
@someoneontheinternet3090
@someoneontheinternet3090 4 жыл бұрын
First figure out what you want to teach. Research it if need be. Write a script so that you know exactly what you are going to say. Try to imagine one character as a know nothing noob like myself and the other as the all knowing Guru. Have the guru explain and the know nothing ask questions that real noobs might ask. One place I don't feel this channel goes far enough is in trying to remember what it's like to not know the lingo or the process of making games or programs. But then, maybe it's not supposed to be for people who don't even know that much. For example, I now know how to make assemblies in Unity but I don't really know why. He says it's for organizing and optimization, and I get the optimization part because it will only recompile the assemblies that have changed saving time, but I'm not sure how it organizes anything.
@makra2077
@makra2077 4 жыл бұрын
@@someoneontheinternet3090 thanks a lot sir! Will definitely try this
@someoneontheinternet3090
@someoneontheinternet3090 4 жыл бұрын
@@makra2077 You're welcome! Good luck!
@Director414
@Director414 4 ай бұрын
awesome tutorial but it would be nice with some more in depth info about potential problems and general workflow on how and when to use these. Many thanks for your great videos, you rock! :)
@maolin7552
@maolin7552 Жыл бұрын
Man you are really making GREAT tutorial video!!! THANK YOU.
@omegaomega6838
@omegaomega6838 2 жыл бұрын
I can tell you worked hard on this. Thanks, so much for this video. I actually learned about assemblies thanks to you. Keep it up.
@auckzsv8599
@auckzsv8599 4 жыл бұрын
You managed to create a simple and fun tutorials for subjects i never wanted to encounter. (mainly unit testing) Your videos have next level production value. you can easily become a top player in this platform. Thanks for the help!
@adamodimattia
@adamodimattia 4 жыл бұрын
Love your videos, also very nice is this format of dialog with yourself, cool.
@shieldgenerator7
@shieldgenerator7 Жыл бұрын
6:42 thanks! that was the missing piece that i needed
@Tastygraph
@Tastygraph 4 жыл бұрын
Most important lesson learned from this video is that you should not judge a book by its cover... People with reverse-caps can still be knowledgable and great teachers! I should tell my boss! 🤓😎
@_GhostMiner
@_GhostMiner Ай бұрын
Very interesting stuff. Surely will come in handy when making a project.
@alexspeleers
@alexspeleers 4 жыл бұрын
YEAS - was thinking why I can't define my custom class in downloaded assets, and you helped me (:
@qzzf1w
@qzzf1w 2 жыл бұрын
Very effective communication style
@scottcorbitt4543
@scottcorbitt4543 Жыл бұрын
I want this dude's coding music playlist lol, I can't find it on Spotify! But I love that it has Griz
@TheIndieProject
@TheIndieProject 2 жыл бұрын
Thank you for this awesome tutorial! Interesting, non standard topic and one of the best ways to teach it I‘ve ever saw. Thumbs up!
@isaacwolf4969
@isaacwolf4969 2 жыл бұрын
These tutorials are awesome
@castlecodersltd
@castlecodersltd 4 ай бұрын
A great explanation. Thank you 🙂
@absolutedogy346
@absolutedogy346 4 жыл бұрын
I am in love with your style of presenting, giving me so much inspiration to start a series like this myself to help pass on some of my knowledge! keep up the good work man
@OiskiPoiskiDK
@OiskiPoiskiDK 4 жыл бұрын
Hmm. Interresting video! Didn't know Unity had that feature. I've been working witj .DLL files for while, though 👍
@MohammadFaizanKhanJ
@MohammadFaizanKhanJ 3 жыл бұрын
Thanks again to you both digital twins.
@interstellar1798
@interstellar1798 4 жыл бұрын
what an amazing style, thanks for the tutorials.
@halivudestevez2
@halivudestevez2 2 жыл бұрын
Wow! To the point! Really helpful!
@umairhassan1849
@umairhassan1849 4 жыл бұрын
Hi your tutorials are very classy. I would like subtitles so that if I miss any point. I can tally there. Thumbs up for your work
@daslolo
@daslolo 4 жыл бұрын
"hey man, I heard you talked about fight club, not cool"
@Kaldrin
@Kaldrin Жыл бұрын
Really clear tutorial thank you, however I can't seem to get rid of the errors by putting a reference to my core assembly (which now holds the rest of the scripts), there seems to be a bigger issue at hand
@IndritVaka
@IndritVaka 2 жыл бұрын
Amazing tutorial, I love it Thanks!
@JonTopping
@JonTopping 2 жыл бұрын
I'm still having so much trouble with this stuff, but the main reason is that I'm using someone else's code. They have put things into namespaces, like you're recommending. The problem is, that creates boundaries that are annoying. So for example, there's a script where the whole thing is in a namespace (I see it in the coding), and while I'm in that script there is a raycast, and I want it to send information from that raycast to another script (the raycast is a bullet, I want to adjust the HP of the object it's hitting). I do a normal getcomponent for the script on the object being hit, but I get this. The type or namespace name 'BodyPartId' could not be found (are you missing a using directive or an assembly reference?) It seems strange to me, because I can understand there being a problem if another script is trying to access stuff in a namespace (which I believe you can just define the namespace before the getcomponent to fix that), but here, I'm trying to access something completely open and normal, and it's not letting me, because I'm within a namespace. How do I fix that problem? I've been told doing stuff with the assembly definitions would help, but I don't totally understand what's happening here. Thanks for any help you can provide!
@3dhex475
@3dhex475 4 жыл бұрын
Just got yourself a new fan!
@lewaplay
@lewaplay 2 жыл бұрын
Very delgant explanation, thanks :)
@RimuruGameDev
@RimuruGameDev 3 жыл бұрын
Великолепно! Большое спасибо за урок.
@benayamanuel
@benayamanuel 4 жыл бұрын
What code editor is that ? Never see that tbh, and if you mind what font youre using ? Kinda elegant
@InfallibleCode
@InfallibleCode 4 жыл бұрын
The code editor is called Rider and the font is called Victor Mono:D
@benayamanuel
@benayamanuel 4 жыл бұрын
@@InfallibleCode cool ! Btw, thankyou so much for your content. Really helpful for me. Youre awesome :D
@JoePShoulak
@JoePShoulak 2 жыл бұрын
So if it's overkill to use an assembly in every name space, how do we differentiate between when we should and should not give a namespace its own assembly?
@hasanabdalla7102
@hasanabdalla7102 Жыл бұрын
Amazing video, however I am having a small problem, once I added an assembly definition to my folder, the scripts in that folder could no longer find any of the classes in the UnityEngine assembly, when I tried to add references I was able to find stuff in the list like such as UnityEngine.UI, but not UnityEngine itself, and now those scripts cannot find things like monobehaviour and the GameObject class... Any idea on how to fix this?
@uchihai_a_h4871
@uchihai_a_h4871 4 жыл бұрын
I thinks it helps in patching as well and shorter updates.... :)
@InfallibleCode
@InfallibleCode 4 жыл бұрын
Definitely!
@ruchirraj5300
@ruchirraj5300 4 жыл бұрын
Can you make some videos covering Advance topics in DOTS?
@teh1archon
@teh1archon 4 жыл бұрын
I really love these tutorials with crossovers with other developers. Even if the other developer is also you ;)
@Ivaseg
@Ivaseg 2 жыл бұрын
Great tutorial! Thank you :)
@gamedev131
@gamedev131 4 жыл бұрын
You deserve 100K subscribers! I am happy to discover this channel :)
@Sovreighn7
@Sovreighn7 4 жыл бұрын
Man, Charles is the best! - Barles
@Layarion
@Layarion 3 жыл бұрын
Haven't finished watching, but I know what's coming when he says it creates boundaries that are harder to cross. I had a real project I was doing for myself, and being the bright eye-ed optimistic noob that I am, wanted practice following enterprise levels of seperations of concerns. Started making my own libraries to keep my code separated. well, i had a hell of a time figuring how to get the IDE to let me use my code lol. fucking circulars. i did get it done though, with interfaces.
@istanbulludeveloper
@istanbulludeveloper 6 ай бұрын
very great tutorial, thanks!
@racrity
@racrity 2 ай бұрын
Aweeeeeeeeesome video! Thanks a lot. Really funny to watch as well lol
@ananttheant
@ananttheant 4 жыл бұрын
Great as always!
@lukastomasek8038
@lukastomasek8038 4 жыл бұрын
Great video I’ve Always got confused about assembly definition
@SLaKMaNiTy
@SLaKMaNiTy Жыл бұрын
When I did this I had to reference a bunch of unity assemblies like TextMeshPro, Netcode, and some other things. Is there a way to have this happen automatically? At least for the Unity register assemblies? It took a while to figure out which ones I needed to add. After doing all that it did make my code compile much faster though, so thanks!
@undisputed7872
@undisputed7872 4 жыл бұрын
Bro which one u r using visual studio or visual code? iam trying to follow your videos but i cant see any of those setting in either visual studio or in visual code can u please tell me what u use that will be help full for like beginners thank you
@ACatWithACrown
@ACatWithACrown 4 жыл бұрын
bruh, best gimmie that spotify playlist
@ACatWithACrown
@ACatWithACrown 4 жыл бұрын
oh nevermind...that was pretty straight forward haha
@piotrw3366
@piotrw3366 4 жыл бұрын
I really appreciate the tutorial Charles, but I don't quite get it. If we use a namespace we already decide if a class Interactive will have access to the Core classes. Aren't those enough to control the dependencies? I have seen people doing WPF and splitting the MVP each into separate project with its own assembly. Would it be the same idea for Unity - meaning that we should have some architecture in mind to properly create assemblys? I will maybe hit that documentation to understand more.
@22hundo73
@22hundo73 4 жыл бұрын
The one with the backwards cap is definitely the evil one!
@morganjames8626
@morganjames8626 4 жыл бұрын
Very cool thanks for the clear explanation!
@aoiti
@aoiti 2 жыл бұрын
So clear. Thank you
@NeZversSounds
@NeZversSounds 2 жыл бұрын
What if I want to make my systems available in assetstore, does it means I shouldn't give it it's own assembly definition?
@АлексейНикитин-й1з
@АлексейНикитин-й1з 4 жыл бұрын
Спасибо! Обожаю ваши видео!!!
@fangyechannel
@fangyechannel 4 жыл бұрын
love the shared knowledge point and this sharing method :)
@gamedev1905
@gamedev1905 2 жыл бұрын
Aww hell yeah libraries in Unity!
@lucasmontec
@lucasmontec 4 жыл бұрын
fyi, youre the best unity youtuber out there (for coders).
@InfallibleCode
@InfallibleCode 4 жыл бұрын
Thank you so much!
@TedThomasTT
@TedThomasTT 4 жыл бұрын
These videos are so good dude
@Kramlets
@Kramlets 4 жыл бұрын
Hi Infallible Code, do you know how UnityEvents are handled with Assembly Definition files? I've been searching everywhere and haven't been able to find any information on this. Namely, if two classes are connected via a UnityEvent, should they be in the same assembly definition file? Thanks!
@AdrianCChase
@AdrianCChase 3 жыл бұрын
This is amazing! Great job explaining it! Way better than unity's reference.
@prdevstudio2538
@prdevstudio2538 4 жыл бұрын
Thank you for this helpful Video. But what are you doing with imported packages which are belonging to the csharp assembly? As far I could see, I can not set up a dependency to this assembly!?
@dreamseekersecondarychanne6053
@dreamseekersecondarychanne6053 2 жыл бұрын
How can I manage to get an ide similar as you. I want your extensions/themes, etc. Where can I find them.
@akisey1
@akisey1 4 жыл бұрын
Another excellent video, thanks!
@gregridd
@gregridd Жыл бұрын
I pretty much did the same thing opened the documentation took a glace at it then went straight to infallible code
@noumankhan167
@noumankhan167 4 жыл бұрын
Great video man
@D-TroS
@D-TroS 2 жыл бұрын
How do you get those things like unity logo and "Event function" upon Awake in VS editor?
@AlexTheProMacGamer
@AlexTheProMacGamer 4 жыл бұрын
Hi, thanks for this video, it definitely help to grasp this stuff. But there are still some things confusing to me. How should I deal with packages? I have TextMeshPro installed (among others) that cannot be found anymore as soon as I setup an Assembly Definitions in my Scripts folder. TMPro already provides its own assemblies that can be referenced, but it is not the case for all packages. What can I do to solve this problem? Hope that someone can help.
@alexjchn
@alexjchn 11 ай бұрын
hello man I have the same problem, I spend some hours trying to get it but yet nothing, was three years ago this comment so i think that you can help me
@blocbonbon
@blocbonbon 3 жыл бұрын
The content was gold! However, although I'm highly impressed by your acting skills, I still thought it was a little cheesy to do it like this :D But I guess some others really liked it so oh well! I can live with it because the content and structure is very good otherwise ;)
@garrettguillotte4925
@garrettguillotte4925 4 жыл бұрын
Can you reuse the DLLs generated as assemblies in other Unity projects, without needing to also copy their source into the new project? For instance, could you add the Core.dll file from this example as a managed plug-in to a new project, and then use the classes and functions within it?
@fmproductions913
@fmproductions913 4 жыл бұрын
Should work. Usually you would put those dlls into the Plugins folder - and there should be no dependencies in the assembly that you forgot to include (like linking to other dlls that you haven't imported) connect.unity.com/p/move-plugin-code-to-plugins
@ttocskcaj
@ttocskcaj 4 жыл бұрын
If you're going to share them across multiple projects, I would keep it completely separated so it's not strongly tied to any one project. You can just create a C# "class library" project in visual studio and then when you compile it, copy of the dll file to the unity projects that need it (or set up visual studio to automatically copy the dll file). If your dll is in your unity project file, you should automatically be able to reference it. You're essentially creating your own kind of private asset store asset
@MarekNijaki
@MarekNijaki 3 жыл бұрын
@@fmproductions913 Very usefull link. Thx mate for sharing !
@joeyninteen175
@joeyninteen175 10 ай бұрын
Awsome tutorial.
@cuttlas2955
@cuttlas2955 4 жыл бұрын
Very usefull video thank u Infallible Code
@sakisgrig
@sakisgrig 4 жыл бұрын
So, what do you do with the scripts left after the DLL is created? If you change them, won't the whole project compile again?
@judgegroovyman
@judgegroovyman 4 жыл бұрын
These videos should be shown in psychology classes. “How to treat yourself with respect and kindness”. This is how our inner dialogue should be.
@haboychan
@haboychan Жыл бұрын
thank you! good tutorial
@Layarion
@Layarion 3 жыл бұрын
Is charles always there "just when you need him"? you might wanna make sure he's not stalking you. "wrapping his day" could be he's done MB to you and wants some face time to go with it.
Coding Conventions in Unity
8:33
Infallible Code
Рет қаралды 27 М.
Что такое Assembly Definition в Unity и зачем он нужен?
12:45
Лавка Разработчика
Рет қаралды 5 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 38 МЛН
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 17 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 162 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 16 МЛН
Speed Up Compile Times in Unity with Assembly Definitions
9:54
Game Dev Guide
Рет қаралды 91 М.
Unit Tests in Unity
11:42
Infallible Code
Рет қаралды 117 М.
How Thinking in Systems Can Improve Your Code
10:16
Infallible Code
Рет қаралды 32 М.
Unity Code Optimization - Do you know them all?
15:49
Tarodev
Рет қаралды 195 М.
Namespaces in Unity
7:05
Infallible Code
Рет қаралды 62 М.
Better Coding in Unity With Just a Few Lines of Code
15:27
Firemind
Рет қаралды 313 М.
A BETTER way to setup new unity projects!
15:44
Jason Storey
Рет қаралды 56 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 722 М.
Just enough assembly to blow your mind
29:31
Kay Lack
Рет қаралды 115 М.
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 38 МЛН