Building system like in Rust & circular menu

Hello guys and welcome to another tutorial, this time it is a kind of special!

Because we are going to create a building system like Rust (so it will take a few parts)

Some parts of this system will be changed later on in the tutorial.
So don’t directly panic if something isn’t like Rust!

Also I didn’t player a minute in my life Rust, so some controls are maybe different. But I think the most important parts are exactly the same as in Rust.

But this is the first part and we start with showing the preview of the object!

So I hope you guys like it!

(all the scripts witch I’m reffering to are here)

Unlit alpha shader script:
http://answers.unity…nlit-alpha.html

The script I coppied:
currentpos -= Vector3.one * offset;
currentpos /= gridSize;
currentpos = new Vector3(Mathf.Round(currentpos.x), Mathf.Round(currentpos.y), Mathf.Round(currentpos.z));
currentpos *= gridSize;
currentpos += Vector3.one * offset;
currentpreview.position = currentpos;

1 Like

Hello guys and welcome to part 2 of how to create a Building system like Rust!

So I hope you guys like it!

If you got any questions, please ask below!

Hello guys and welcome to part 3 of how to create a Building system like Rust!

So I hope you guys like it!

If you got any questions, please ask below!

1 Like

Hello guys and welcome to part 4 of how to make a building system like Rust, hope you guys like it!

Hello guys and welcome to part 5 of how to make a building system like Rust, hope you guys like it!

1 Like

How to make a circular menu in Unity 5!
You can follow this if you don’t follow the Rust Tutorial (We will first create the system, at the next rust part we will intergrate it)

Hope you guys like it!

Part 2 of how to create a circular menu in unity!

Hope you guys like it!

Part 6 of how to create a building system within unity!