Creating Replace Tool in Unity for Level Designers

Do you wish you could make a level with simple cubes and later replace them all with some other object with one click? This is what we are going to create today!

A long time ago, I created posts about the basics of creating extensions for the editor. I’m not going to cover that topic here, so go ahead and check the post about creating custom editor windows. ?

This post will cover creating tool window, gathering of selected objects on the scene, and using Unity’s Undo class. ?‍?

Continue reading “Creating Replace Tool in Unity for Level Designers”

Procedural Terrain Generation – Texture – Part 4

In previous posts, we generated a plane, added noise and noise layers to it. Now, it’s time to add texture to our terrain finally! ?

If you haven’t seen previous posts, I would recommend doing so, as the content of this post is based on them.

Do you remember that we added UV to our terrain mesh? We did it in the first post on plane generation. Thanks to that, we don’t need to worry about it now. But to remind ourself which part is responsible for assigning UV to our mesh, let’s put it here.

Continue reading “Procedural Terrain Generation – Texture – Part 4”

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”