Lets Build Community

Lets Build is a community of 163 amazing members

We're a place where indie game developers to connect with one another to share ideas, ask for help and teach each other.

Create new account Log in
Cover image for How to make a Hole Game in Unity.

How to make a Hole Game in Unity.

urocksgamedev profile image URocks! Originally published at youtube.com ・1 min read


In this video, we will create a Hole Game similar to hole.io or donut county. We will learn how to cut holes in solid geometry with one trick. First I will show you how to create 3d collider with a hole with the help of 2d polygon collider, then we will make some physics optimizations so we will activate rigid bodies only when they are near the hole, then we will create backface culling shader inside unity shader graph and with help of Universal render pipeline (unity urp) render features like stencil buffer and depth buffer we will create the hole illusion, then I will show you how to easily move the hole with physics raycaster and unity event systems and also we will create some growing animation when we catch more obstacles.


Editor guide
rgails profile image
Ryan Gails

Well explained walk through! I don't have much Unity experience, but I might try this out.

rcarlson profile image
Robert Carlson

This is very simple and detailed walk through of how to build a complicated game mechanic. Thank you for taking the time to create this. Can't wait to implement this in my own games :)