So there is whole topic on the Coroutine in Unity. Are they easy to understand? Are they a different thread? Well, let me try to explain it! 🤓
First of all, we should have an understanding what this thing called “Coroutine” mean and it does.
For me, I really like to explain that by comparing to regular function.
Continue reading “Understanding Coroutines”
Last time we were cutting shapes in meshes, but the performance of it was mediocre at best, and let’s not start on limitations of it. This time we will check how we can do it by using textures.
My guess here is that by making cuts in texture, we will get better performance. I also hope results that we will be able to present using texture rather than mesh cutting will be better as well.
But that’s a theory, so let’s not waste any more time and let’s check it!
Continue reading “Cutting Shapes – Texture – Part 2”
When I was approaching making “Replace Tool for Level Designers” I encounter ScriptableWizard. I didn’t know that such a thing existed in Unity! 😱
It got me curious as I was planning to make that tool using regular Custom Editor Window, but all of a sudden, there was space to try something new! Unfortunately, I didn’t use ScriptableWizard as it wasn’t suited for what I wanted.
But I think it’s time to revisit it and learn more about it!
Continue reading “Custom ScriptableWizard in Unity”
Recently, on one of the groups, someone asked how to cut shapes in the mesh. It got me thinking about how you can actually do that?
After some digging, I found out that there could be more than one solution to that. So why don’t we try to see which one would work the best?
Let’s start today by generating a mesh in which we will cut some shapes!
Continue reading “Cutting Shapes – Mesh – Part 1”
Let’s talk about OnTrigger methods in Unity! Do you know when they are invoked or for what you can use them? Let’s see in this post! 🔥
In one of the recent posts, we spoke about OnCollision methods and the fact that Unity has two separate physics engines.
Of course, like with collisions, there are different trigger methods for the 2D and the 3D engines. For 3D there are OnTriggerEnter(), OnTriggerStay() and OnTriggerExit() methods. For 2D there are almost the same OnTriggerEnter2D(), OnTriggerStay2D() and OnTriggerExit2D() methods.
Continue reading “Understanding OnTrigger methods in Unity”