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Күн бұрын
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Күн бұрын
@@freedomcoding fixed, thank o
@PotatoManager4202 күн бұрын
Thank you kind sir! You're making a great service.
@freedomcodingКүн бұрын
You are very welcome!
@mirm0n2 күн бұрын
Your tutorials are great, but I suggest changing the thumbnails to something better, these ai images don't look good at all.
@freedomcoding2 күн бұрын
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?
@ReySnts2 күн бұрын
Please make another important Unity Software Design Pattern videos. Thanks.
@freedomcoding2 күн бұрын
I will!
@LongDoan-zz3bw2 күн бұрын
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!
@freedomcoding2 күн бұрын
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.
@mirm0n2 күн бұрын
YOU ARE A LEGEND!! THIS HELPED ME SO MUCH 😮😊❤
@freedomcoding2 күн бұрын
No problem 😊
@KevenLambert-p1q4 күн бұрын
not sure why even with ip adress and port right wont connect says failed to connect to server, servr is online
@freedomcoding2 күн бұрын
Hi, does it give you any specific error?
@ArnCiS965 күн бұрын
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
@coolman16016 күн бұрын
great video however looping over all entity's and checking if they have a certain components seems like a really bad idea.
@freedomcoding5 күн бұрын
Thank you. Yes, you are right. Instead you should be using the entity queries if I remember correctly.
@dracaenamarginato6 күн бұрын
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!
@freedomcoding5 күн бұрын
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.
@dracaenamarginato4 күн бұрын
@@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!🙂
@freedomcoding4 күн бұрын
@@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 :)
@belofost7 күн бұрын
I get an error "index 0 is out of range in dynamic buffer of 0 length", how do I fix it?
@belofost7 күн бұрын
Nevermind, just had to check is the waypoint buffer of non-zero length before running "Move" function.
@freedomcoding7 күн бұрын
I am glad you were able to fix it!
@Digildon8 күн бұрын
Thank you very much. I'm stuck with the problem of spawning prefabs from the scriptable object for days and your video saved me.
@freedomcoding8 күн бұрын
I am glad my video helped you!
@prathameshsalunkhe1008 күн бұрын
I want to watch this video but exams on head 😢
@freedomcoding8 күн бұрын
Don't worry, the video will wait for you :) Good luck with your exams!
@prathameshsalunkhe1008 күн бұрын
@@freedomcoding yes , thank you
@saschagrusche84499 күн бұрын
Thank you for this helpful introduction to the UI Builder.
@freedomcoding8 күн бұрын
You are welcome!
@kiechannel827810 күн бұрын
Please make a dedicated server and how it create account and charracter
@freedomcoding9 күн бұрын
I don't plan to make tutorials about multiplayer in the near future, but I am adding it on my list!
@lekiwixiaosheng966810 күн бұрын
Hello, is there a difference between GPU instancing like you did and just simply checking the GPU instancing box in the material of gameobjects?
@freedomcoding9 күн бұрын
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.
@cawmungames764714 күн бұрын
best tutorial i've ever seen about async programming, thank you so much for making this <3
@freedomcoding14 күн бұрын
Thank you for your kind words! I will keep making more and even better tutorials.
@nguyenremote14 күн бұрын
can you public src unity, i cant download
@freedomcoding14 күн бұрын
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.
@theartframe959615 күн бұрын
dude this is the most complicated UI system I have ever seen?wtf?
@freedomcoding15 күн бұрын
I made the video a long time ago when I was less experienced. Still what do you think that is so complicated about it?
@theartframe959613 күн бұрын
@@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..
@freedomcoding12 күн бұрын
@@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_VR16 күн бұрын
I’m so mad right now since my unity project is 5.1 GB
@freedomcoding15 күн бұрын
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.
@JustinCavanas17 күн бұрын
No sound?
@freedomcoding17 күн бұрын
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!
@gentsu811219 күн бұрын
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
@gentsu811219 күн бұрын
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
@freedomcoding19 күн бұрын
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.
@danielhumphrey840519 күн бұрын
This was a lifesaver! Thanks so much!
@freedomcoding19 күн бұрын
You're welcome!
@eSorry20 күн бұрын
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 ?
@freedomcoding19 күн бұрын
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
@PotatoManager42022 күн бұрын
Definately a handy pattern, but how it's called anti-patern? Can the dependency injection (Zenject) cover the same tasks?
@freedomcoding21 күн бұрын
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.
@PotatoManager42022 күн бұрын
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?
@shinjikun1321 күн бұрын
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.
@freedomcoding21 күн бұрын
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.
@crovettodev14422 күн бұрын
Good video but i need create a List inside the list :(
@freedomcoding21 күн бұрын
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.
@정동우-n2x23 күн бұрын
SOOOOOOOOOO! GOOOOD!!!
@freedomcoding23 күн бұрын
Thank you <3
@theonerm223 күн бұрын
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.
@freedomcoding23 күн бұрын
Hi, I think you should be able to achieve that by adding more vertices and setting their Z position accordingly.
@flipjorge24 күн бұрын
What if we want to remove the silencer after adding all the components?
@freedomcoding23 күн бұрын
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.
@RigelArndt24 күн бұрын
This is an excellent tutorial and helps me to do exactly what I am trying to do.
@freedomcoding23 күн бұрын
I love to hear that! Enjoy.
@hernandonj26 күн бұрын
Great video. Thank you so much!
@freedomcoding26 күн бұрын
You are welcome!
@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)
@freedomcoding29 күн бұрын
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Ай бұрын
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
@freedomcoding29 күн бұрын
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Ай бұрын
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
@freedomcoding29 күн бұрын
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Ай бұрын
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?
@freedomcoding29 күн бұрын
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Ай бұрын
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Ай бұрын
Dear God thank you for existing, this is what im looking for ty
@freedomcoding29 күн бұрын
I am glad the tutorial was helpful to you.
@jubinjajoria2870Ай бұрын
Nice Video... Learned many new things...
@freedomcodingАй бұрын
Great!
@johnnyisshin3697Ай бұрын
Easy to understand. Works as expected. 5/5
@freedomcodingАй бұрын
I love to hear that!
@saygexwithmeАй бұрын
my console is literally not working, it is only displaying errors(if any) but not giving output
@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Ай бұрын
@@freedomcoding yes, message, warnings and a stop sign? all are enabled.
@saygexwithmeАй бұрын
@@freedomcoding they say 0, even though I have an output
@이건개발-p8nАй бұрын
쉽게 이해하였습니다.
@mrpickle808Ай бұрын
Will this work for iOS and android?
@freedomcodingАй бұрын
Hi, I think there should be no problem with it.
@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Ай бұрын
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Ай бұрын
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Ай бұрын
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Ай бұрын
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.