Understanding Updates in Unity

Have you ever wonder why Unity has so many update methods? Update, FixedUpdate, LateUpdate, what is going on here?!

When you are programming in Unity, you can see that besides Update, there is also FixedUpdate. When you first see it, you will definitely ask, “What is the difference between those two?”.

Well, there is a short answer, but you also need to know when to use each of them.

Continue reading “Understanding Updates in Unity”

Creating Waves on Plane mesh

So in a recent post, we talked about generating a Quad and a Plane, which is an excellent introduction to creating meshes from code! But this time, let’s modify a mesh on a fly, by making water from a Plane with some waves! ?‍♂️

If you read my previous posts, you already know how to generate a quad or a plane from code. We will use the code from my last post to create a plane, so we don’t need to write it again.

But before we can jump into modifying mesh, the first thing that I would do is to add scrolling to water texture. ?‍?

Continue reading “Creating Waves on Plane mesh”