MVC & Command Pattern In Action!
1:26
Lost Fox Cub #3 || Unity Devlog
4:44
C# & LINQ: Write Less, Do More!
9:37
Lost Fox Cub #2 || Unity Devlog
4:09
Lost Fox Cub #1 || Unity Devlog
3:29
Пікірлер
@NoobGaming-nv3be
@NoobGaming-nv3be 2 күн бұрын
ndexOutOfRangeException: System.IndexOutOfRangeException: Index 0 is out of range in DynamicBuffer of '0' Length. This Exception was thrown from a function compiled with Burst, which has limited exception support. 0x00007ffc94e92eee (37aa64116dfd955e3c684f19d700273)
@freedomcoding
@freedomcoding Күн бұрын
Hi, someone got this error as well, here is how they fixed it: "Nevermind, just had to check is the waypoint buffer of non-zero length before running "Move" function."
@NoobGaming-nv3be
@NoobGaming-nv3be Күн бұрын
@@freedomcoding fixed, thank o
@PotatoManager420
@PotatoManager420 2 күн бұрын
Thank you kind sir! You're making a great service.
@freedomcoding
@freedomcoding Күн бұрын
You are very welcome!
@mirm0n
@mirm0n 2 күн бұрын
Your tutorials are great, but I suggest changing the thumbnails to something better, these ai images don't look good at all.
@freedomcoding
@freedomcoding 2 күн бұрын
Thank you for your honest opinion. I will soon make a YT poll asking people whether they like the AI or the classic thumbnails more. I am not good at art, so I thought AI would do a better job. But I know that AI sometimes can't convey the message through the image well. Do you have a style of thumbnails you would like? The ones I was making before these AI thumbnails or something different?
@ReySnts
@ReySnts 2 күн бұрын
Please make another important Unity Software Design Pattern videos. Thanks.
@freedomcoding
@freedomcoding 2 күн бұрын
I will!
@LongDoan-zz3bw
@LongDoan-zz3bw 2 күн бұрын
A really nice tutorial that makes me want to learn more and support your chanel, for heavy AI game like Rimworld, which is a single thread game and the pathfinding code is really heavy and make the game slower the more AI it had. I do wonder can this pathfinding code write in multithread way to improve performance, if so that would be nice to learn a way to achieve this algorithm in multithread way. Thank you!
@freedomcoding
@freedomcoding 2 күн бұрын
Thank you, I love to hear that! I am pretty sure there is a multithreaded A* pathfinding package on the asset store. You should be able to achieve that with the jobs package, but I haven't tried yet.
@mirm0n
@mirm0n 2 күн бұрын
YOU ARE A LEGEND!! THIS HELPED ME SO MUCH 😮😊❤
@freedomcoding
@freedomcoding 2 күн бұрын
No problem 😊
@KevenLambert-p1q
@KevenLambert-p1q 4 күн бұрын
not sure why even with ip adress and port right wont connect says failed to connect to server, servr is online
@freedomcoding
@freedomcoding 2 күн бұрын
Hi, does it give you any specific error?
@ArnCiS96
@ArnCiS96 5 күн бұрын
Next wanna see more advances thing like code generation via Mono.Cecil. It uses all advances netcode frameworks and DOTS it will negate reflection runtime execution cost also it works with IL2CPP
@coolman1601
@coolman1601 6 күн бұрын
great video however looping over all entity's and checking if they have a certain components seems like a really bad idea.
@freedomcoding
@freedomcoding 5 күн бұрын
Thank you. Yes, you are right. Instead you should be using the entity queries if I remember correctly.
@dracaenamarginato
@dracaenamarginato 6 күн бұрын
Wow, you explained the MVC pattern fantastically! Could you please make a video on how you learned programming and Unity? It would be really inspiring to hear about your journey🤯. Thanks!
@freedomcoding
@freedomcoding 5 күн бұрын
Thank you! I am glad this tutorial helped you. Maybe some time in the future, as I am not sure how many people would be interested in that. I learned it mostly by experimenting and trying out new things. I also love learning about new tools and features, so that is what I am doing most of the time.
@dracaenamarginato
@dracaenamarginato 4 күн бұрын
@@freedomcoding Thank you so much! That makes sense, and experimenting is such a great way to learn. In the future, if you could teach how to think about logic and implement it in code, that would be amazing. As we develop logic, the code can become bigger and more complex. Thanks again for all your content!🙂
@freedomcoding
@freedomcoding 4 күн бұрын
@@dracaenamarginato I will be trying out livestreaming soon, so there I will try to explain my thought process behind everything more. I thank you for watching my videos and supporting me :)
@belofost
@belofost 7 күн бұрын
I get an error "index 0 is out of range in dynamic buffer of 0 length", how do I fix it?
@belofost
@belofost 7 күн бұрын
Nevermind, just had to check is the waypoint buffer of non-zero length before running "Move" function.
@freedomcoding
@freedomcoding 7 күн бұрын
I am glad you were able to fix it!
@Digildon
@Digildon 8 күн бұрын
Thank you very much. I'm stuck with the problem of spawning prefabs from the scriptable object for days and your video saved me.
@freedomcoding
@freedomcoding 8 күн бұрын
I am glad my video helped you!
@prathameshsalunkhe100
@prathameshsalunkhe100 8 күн бұрын
I want to watch this video but exams on head 😢
@freedomcoding
@freedomcoding 8 күн бұрын
Don't worry, the video will wait for you :) Good luck with your exams!
@prathameshsalunkhe100
@prathameshsalunkhe100 8 күн бұрын
@@freedomcoding yes , thank you
@saschagrusche8449
@saschagrusche8449 9 күн бұрын
Thank you for this helpful introduction to the UI Builder.
@freedomcoding
@freedomcoding 8 күн бұрын
You are welcome!
@kiechannel8278
@kiechannel8278 10 күн бұрын
Please make a dedicated server and how it create account and charracter
@freedomcoding
@freedomcoding 9 күн бұрын
I don't plan to make tutorials about multiplayer in the near future, but I am adding it on my list!
@lekiwixiaosheng9668
@lekiwixiaosheng9668 10 күн бұрын
Hello, is there a difference between GPU instancing like you did and just simply checking the GPU instancing box in the material of gameobjects?
@freedomcoding
@freedomcoding 9 күн бұрын
Hi, yes there is a big difference. While GPU instancing the objects through code, it is not creating GameObjects for each of the meshes. For this reason instancing the objects through code is more performant than simply checking the box in the material. When you make the material GPU instanced, Unity renders all of the objects with the same material in a single draw call, but the objects remain as GameObjects in the scene. Still this technique improves performance a lot.
@cawmungames7647
@cawmungames7647 14 күн бұрын
best tutorial i've ever seen about async programming, thank you so much for making this <3
@freedomcoding
@freedomcoding 14 күн бұрын
Thank you for your kind words! I will keep making more and even better tutorials.
@nguyenremote
@nguyenremote 14 күн бұрын
can you public src unity, i cant download
@freedomcoding
@freedomcoding 14 күн бұрын
You mean source files for the project? Unfortunately I no longer have them. My newer videos always have project files included, just not the older ones.
@theartframe9596
@theartframe9596 15 күн бұрын
dude this is the most complicated UI system I have ever seen?wtf?
@freedomcoding
@freedomcoding 15 күн бұрын
I made the video a long time ago when I was less experienced. Still what do you think that is so complicated about it?
@theartframe9596
@theartframe9596 13 күн бұрын
@@freedomcoding The UI set up has too many elements.. it seems like an image and a background would be enough.. you have item , items , background, icon .. its more things that can go wrong .. panel and image.. then a slot and inventory script etc..
@freedomcoding
@freedomcoding 12 күн бұрын
@@theartframe9596 Sometimes simplicity is the way to go, but in this case, it is beneficial to add the empty parent objects for organization. If you would have 100 different images and backgrounds under one parent, it would be really chaotic. With the scripts it is the same way. It would be really hard to maintain or extend the code if it would be all in just one script.
@JumpingManGM_VR
@JumpingManGM_VR 16 күн бұрын
I’m so mad right now since my unity project is 5.1 GB
@freedomcoding
@freedomcoding 15 күн бұрын
You can try GitHub. I am not sure how much storage they offer for free. If you go for GitHub, be sure to select Gitignore for Unity, which won't upload the Unity libraries etc.
@JustinCavanas
@JustinCavanas 17 күн бұрын
No sound?
@freedomcoding
@freedomcoding 17 күн бұрын
Do you feel like this basic service locator💻is not enough? If you want to add contexts (GameObject, scene and project), I just released a follow-up tutorial📖for supporters on my Patreon - www.patreon.com/posts/112983319. Check it out!
@gentsu8112
@gentsu8112 19 күн бұрын
I've been learning so much from you, your marching cube, triplanar and shaders videos saved me, you're always my reference channel to learn unity, I think your work is so incredible, I really want your channel to grow
@gentsu8112
@gentsu8112 19 күн бұрын
One question, do you intend to make a continuation video of the marching cube one day, bringing lod and implementing transvoxel to fix the seams problem? About lods your algorithm is very easy to implement lods, just skip the iteration vertices of the mesh in the code, and increase the size of the indexing cubes to get the correct noise
@freedomcoding
@freedomcoding 19 күн бұрын
Thank you for the kind words! I am glad I could help. Currently I am focusing more on writing clean code and learning about the design patterns. Additionaly I would like to finish the game I am working on. Marching cubes is definitely an interesting topic and I would love to make a longer series about it. Unfortunately, right now it is not my priority. Maybe some time in the future.
@danielhumphrey8405
@danielhumphrey8405 19 күн бұрын
This was a lifesaver! Thanks so much!
@freedomcoding
@freedomcoding 19 күн бұрын
You're welcome!
@eSorry
@eSorry 20 күн бұрын
How can i add some image to a button? Like i can put a background image but how can i add like a image element ?
@freedomcoding
@freedomcoding 19 күн бұрын
Hi, I haven't worked with UI Toolkit much since I made the video. This should help you - discussions.unity.com/t/is-there-a-way-to-add-an-image-to-my-ui-from-the-editor-and-not-via-uielements-image/843374
@PotatoManager420
@PotatoManager420 22 күн бұрын
Definately a handy pattern, but how it's called anti-patern? Can the dependency injection (Zenject) cover the same tasks?
@freedomcoding
@freedomcoding 21 күн бұрын
Some people like to use dependency injection more as typically, you are passing the dependecies through a constructor. Then you can easily see which dependencies a class has. On the other side, with the service locator, the class is getting the dependencies directly from the service locator. I think that both approaches are valid and you can mix them as you want. Dependency injection framework like Zenject is really similiar to the service locator, it just has more functionality that I didn't add in the video. So all of these techniques will help you to achieve the same thing.
@PotatoManager420
@PotatoManager420 22 күн бұрын
10:01 During Start() how can you be sure that ISoundService was created and registered in service locator? Can this code be redone in a self-sufficient manner?
@shinjikun13
@shinjikun13 21 күн бұрын
ServerInstaller 7:10 creates/installs the services in its Awake, which always runs before any Start. Still the possibility that a service locator may be not registered and be null exist, that's why he is checking for null (with ?) every time the turret script tries to use them.
@freedomcoding
@freedomcoding 21 күн бұрын
Additionaly, you could crete some IService interface that all services should follow and would also include a function to create some default implementation for each service. If the service locator would notice that a service is not registered, it could call the function to create some default implementation of a service and use that one.
@crovettodev144
@crovettodev144 22 күн бұрын
Good video but i need create a List inside the list :(
@freedomcoding
@freedomcoding 21 күн бұрын
Thank you. I never needed to create list inside of a list. Does List<List<type>> not work? I think you should be able to achieve something similiar by creating your own data structure (class) and then you could make list of these classes holding the data you need. Or you could create two dimensional array.
@정동우-n2x
@정동우-n2x 23 күн бұрын
SOOOOOOOOOO! GOOOOD!!!
@freedomcoding
@freedomcoding 23 күн бұрын
Thank you <3
@theonerm2
@theonerm2 23 күн бұрын
I'm trying to figure out how to make the mesh have sides too. Like a sidewalk. With height and faces for the sides. I figured out how to do it separately but not in one mesh.
@freedomcoding
@freedomcoding 23 күн бұрын
Hi, I think you should be able to achieve that by adding more vertices and setting their Z position accordingly.
@flipjorge
@flipjorge 24 күн бұрын
What if we want to remove the silencer after adding all the components?
@freedomcoding
@freedomcoding 23 күн бұрын
Hi, you could have a function in the decorator interface like Unwrap. Imagine that we have a scenario, where 3 is wrapping 2, and 2 is wrapping 1 like so (3(2(1))). If you would call the Unwrap on number 2, it should wrap the object it is wrapping (1) in the object that was wrapping the number 2, so (3), the result should be (3(1)). For this you would also need to have variable storing the object a wrapper is wrapping and also the object the wrapper is being wrapper by.
@RigelArndt
@RigelArndt 24 күн бұрын
This is an excellent tutorial and helps me to do exactly what I am trying to do.
@freedomcoding
@freedomcoding 23 күн бұрын
I love to hear that! Enjoy.
@hernandonj
@hernandonj 26 күн бұрын
Great video. Thank you so much!
@freedomcoding
@freedomcoding 26 күн бұрын
You are welcome!
@krisek98
@krisek98 Ай бұрын
Hi! I am facing an issue, where when I want to make the copies join, I often (way too often) get failure, because of being RateLimited Even after checking the matchmaking ticket status every 5 seconds, not 1 second, I still get the same error, when using just two copies of the editor, I might hit a spot where they kind of sync their checking in propper time intervals and it doesnt throw an error. I am aware that the rate limitations say that one chceck should be done every second, but I don't see anyone in the tutorials, both yours and other creators facing the same issue. Do you have any idea what might cause this? Maybe I skipped something I'm really not sure and kind off helpless at this point (wasted over 10 hours already just for this issue)
@freedomcoding
@freedomcoding 29 күн бұрын
Hi, it may be possible that both copies of the editor are sending the requests almost simultaneously. You could try to add some random offset (between 0.1 sec to 0.5 sec or so) to the delay between the status checks.
@strategystuff5080
@strategystuff5080 Ай бұрын
Shame the project files are not on your Patreon, I know you provided the scripts. But I always like having the project just so I can see, if the behaviour is really what I am looking for
@freedomcoding
@freedomcoding 29 күн бұрын
Yeah, before I didn't know about a better way to provide the project files. If I ever get back to DOTS, you can be sure all of the project files will be on my Patreon.
@cristhyanjheymes2063
@cristhyanjheymes2063 Ай бұрын
can u make a inventory like in the games of puppet combo? i really want a similar inventory but i cant think a good way to do it, even with this great tutorial. if one of my games need a minecraft style inventory this is the tutorial but do u mind making one like puppet combo? :c
@freedomcoding
@freedomcoding 29 күн бұрын
Hi, it is not on my list currently. Unfortunately, I cannot explain all of this to you through comments, so if you would want to have some online lessons with me, feel free to take a look at my website - freedom-coding.com/tutoring
@cristhyanjheymes2063
@cristhyanjheymes2063 Ай бұрын
hello! can u teach how to add a limit of itens in the hotbar? i just want 3 itens in the inventory at the same time, if u want another one, you have to left one. can u help me?
@freedomcoding
@freedomcoding 29 күн бұрын
Hi, currently I don't plan to be making another inventory tutorial. I am sure there exist other resources about it on the internet.
@gaymdev6144
@gaymdev6144 Ай бұрын
to see the repository, make the settings "beta" in the unity hub and update the hub to version 3.9 (the update button will appear in a couple of minutes +-).
@cristhyanjheymes2063
@cristhyanjheymes2063 Ай бұрын
Dear God thank you for existing, this is what im looking for ty
@freedomcoding
@freedomcoding 29 күн бұрын
I am glad the tutorial was helpful to you.
@jubinjajoria2870
@jubinjajoria2870 Ай бұрын
Nice Video... Learned many new things...
@freedomcoding
@freedomcoding Ай бұрын
Great!
@johnnyisshin3697
@johnnyisshin3697 Ай бұрын
Easy to understand. Works as expected. 5/5
@freedomcoding
@freedomcoding Ай бұрын
I love to hear that!
@saygexwithme
@saygexwithme Ай бұрын
my console is literally not working, it is only displaying errors(if any) but not giving output
@freedomcoding
@freedomcoding Ай бұрын
Do you have the messages enabled in the top right corner of the console? There are the 3 small icons you can enable and disable.
@saygexwithme
@saygexwithme Ай бұрын
@@freedomcoding yes, message, warnings and a stop sign? all are enabled.
@saygexwithme
@saygexwithme Ай бұрын
@@freedomcoding they say 0, even though I have an output
@이건개발-p8n
@이건개발-p8n Ай бұрын
쉽게 이해하였습니다.
@mrpickle808
@mrpickle808 Ай бұрын
Will this work for iOS and android?
@freedomcoding
@freedomcoding Ай бұрын
Hi, I think there should be no problem with it.
@yaroodevelop571
@yaroodevelop571 Ай бұрын
Please help. How to make "chat app" where to people connects together sharing join Code but later when they open the app the same to people connect automaticly, beacuse while first login their devices saved device ID in PlayerPrefs?
@xEndkoNx
@xEndkoNx Ай бұрын
I have 2 problems: the first is that I don't understand the itemPrefab part, I don't know what is placed there and the second is that if I assign an object there, it creates copies equal to the number of slots in the inventory. Min 7:10
@freedomcoding
@freedomcoding Ай бұрын
Hi, if I remember correctly the item prefab should be prefab of the itemUI. It should be an image for the icon of the item and maybe some background and text if you want.
@Observer552
@Observer552 Ай бұрын
YOO WHAT! WAS IT THAT EASY TO MAKE COOLDOWN/SLEEP FUNCTIONS ????? Why does no one say that. All I could find was startCoroutine() yield return .... blablabla. And I did not understand these things. But I immediately (I hope) understand the asynchronous things at the 2 minutes of this video. Thanks a lot :)))
@freedomcoding
@freedomcoding Ай бұрын
I am glad this video was helpful to you! Coroutines can be better in some cases, but I find the async workflow better. Also if you want to improve performance with async programming, take a look at UniTask.