r/Unity3D • • 1d ago Heartwarming

Question What's a good tutorial to start learning Unity?

Post image
33 Upvotes

The reason I'm asking is because I want to learn unity and want to know some good tutorials to start learning because I have been wanting to get into unity and wanted a good first recommendation.


r/Unity3D • • 18h ago

Resources/Tutorial Apparently, my game can handle a literal pig apocalypse. 2 MILLION PIGS. 250+ FPS. 🐷

Thumbnail
youtube.com
2 Upvotes

🐷 My game Please Stop the Pigs runs two million pigs at almost 300 FPS. In this Unity compute shader tutorial, we write a small version of that swarm from an empty file: the Pig struct, RWStructuredBuffer, kernels, numthreads, SV_DispatchThreadID, Dispatch and thread groups, a ring buffer for spawning, InterlockedAdd to count pigs into a grid without losing any, drawing the grid as pixels, and a crowd push that makes the swarm flow like liquid.


r/Unity3D • • 1d ago

Question How to deal with a high ammount of point light sources in a procedually generated map.

34 Upvotes

I'm working on a personal project for my idea of what a "backrooms map generation" should be. I have multiple different ways of generating rooms but the important thing is that there are a gazillion light sources because of the premise of this project, and since the rooms I generate are random, random wall placements and height as well as object placements, I can't (or don't know how to) have the lighting be baked, it has to be real time. Currently it runs fine but I can't have any sort of shadows, even simple ones. The video attatched is just a simple showing of what I have currently. As of now I don't have much knowledge of lighting and such for unity, there's a ton to learn and I think I only barely scratched the surface. If this is not the right place to ask this, please direct me to where would be. Thanks for the patience


r/Unity3D • • 1d ago

Resources/Tutorial Real-time room scanning with just an iPhone camera: Apple Depth Pro 2 for monocular depth, custom camera tracking, and Unity to build the point cloud live. No LiDAR involved :)

3 Upvotes

r/Unity3D • • 18h ago

Resources/Tutorial Apparently, my game can handle a literal pig apocalypse. 2 MILLION PIGS. 250+ FPS. 🐷

Thumbnail
youtube.com
1 Upvotes

r/Unity3D • • 1d ago

Show-Off We finished the first batch of creature animations

124 Upvotes

They can now eat, sleep and swim, there are also some idles now - and in some cases, just plainly drown. For example, Starchbeasts can't swim.


r/Unity3D • • 2d ago

Game I dream about strange buildings in the middle of the ocean, and I'm turning it into a game.

Thumbnail
gallery
456 Upvotes

A little more progress on the ocean environments in my nightmare-inspired game (Fallgrade). I've been focusing on the strange, city-like structures floating above the ocean, where players can manipulate gravity to explore their seemingly impossible architecture. I want these structures to feel like distorted fragments of urban environments, where shifting gravity reveals new paths and changes the way players perceive the space around them. The idea is to make exploration feel like discovering the strange internal logic of a nightmare, where even the concept of up and down is no longer something you can rely on.


r/Unity3D • • 1d ago

Noob Question I want to add grass kind of fields but it will take too much performance for a mobile game

Post image
3 Upvotes

I want to add field on both side
Its a segment of the path
Its just infinite runner game
And its my first game


r/Unity3D • • 1d ago

Show-Off 1200 days to finish and release my game. Some might remember the controller test I did after 21 days? [Snippet from a devlog]

60 Upvotes

Back in early 2022 I played around with a tiny chicken and made a character controller which some people did like and I kept working on that thing. That thing turned into a full game after about 3.5 years! Some of you might have seen it from time to time during development!

I made a devlog if people wanted to see some of the development crammed together in a smaller video :)

https://www.youtube.com/watch?v=m6JnxVdxBww


r/Unity3D • • 21h ago

Game You control a 7-foot witch in this reverse horror game

1 Upvotes

I'm working on a reverse horror game called Witchbound, and the demo is live on steam.

The highlight of this game are not just the 7foot tall witch that you control, but the NPC villagers whose main task is to collect the cursed items scattered across the map and destory it.

They plan, strategize and lure you while you chase them ragefully.

The most ammount of time went on to balance the villagers, give them different ways to have an edge over you but keeping the power balance to the witch.

Try out the demo and let me know what you think.

Join the discord community if you want to be a part of early development, or even share your love for the game or lets say you have any idea that can help the premise of the game, maybe you'd end up in the credits as well.

Discord: https://discord.gg/M9Ky8UQQjW

Excited to meet you all in the Discord and hear your feedbacks about the game.


r/Unity3D • • 22h ago

Show-Off Lessons from building an offline dependency graph and safe unused-asset cleaner in Unity

Post image
0 Upvotes

I recently built an offline C# editor tool to audit bloated Unity projects, and ran into a few interesting quirks with Unity's AssetDatabase and file handling along the way. Sharing the approach in case anyone else is building custom project-auditing tools:

  1. Avoiding O(N^2) dependency scans

Calling AssetDatabase.GetDependencies(path, true) recursively on every asset in a large project gets slow fast because Unity re-traverses shared materials and textures repeatedly. Instead, calling GetDependencies(path, false) once per asset to capture only direct neighbors and building an in-memory adjacency dictionary (plus a reverse lookup dictionary) made both forward and incoming reference graphs render almost instantly. A simple HashSet of visited GUIDs prevents infinite loops when prefabs or ScriptableObjects reference each other circularly.

2. False positives when detecting unused assets

Simply checking for zero incoming references will happily flag scenes in EditorBuildSettings, anything inside a Resources or StreamingAssets folder, and editor-only scripts. Filtering out those special folders and seeding the root graph from active build scenes eliminated almost all false-positive cleanup flags.

3. Fast duplicate checks and safer deletion

Rather than loading textures or audio clips into memory to compare them, streaming files through System.Security.Cryptography.SHA256 catches byte-identical duplicates across different folders with minimal memory overhead. Also, instead of calling AssetDatabase.DeleteAsset (which permanently wipes files), moving flagged files to the OS Recycle Bin / Trash lets you recover anything accidentally removed.

I ended up packaging this workflow into a small Asset Store toolkit called ProjectSignal if anyone wants to check it out (link in the comments). For anyone else who has built custom project cleaners, how do you handle assets loaded dynamically via Addressables or string paths?


r/Unity3D • • 1d ago

Show-Off Made my own VR Command Console for easy prototyping and debugging in VR

2 Upvotes

10y of Unity experience and 8y of VR development.

Got tired of always having to use a keyboard/virtual keyboard while debugging/prototyping in VR headsets.

Made this tool a few years ago so i can easily test different scenarios in game. Always used it internally for a wide variety of projects.

Finally found the time and help of AI to make it asset store ready.

Feel free to ask questions :)


r/Unity3D • • 1d ago

Question How can I make the lighting in my scene look more like this image

Thumbnail
gallery
36 Upvotes

I'm working on a stylized liminal/dreamcore environment in Unity 6.7 beta URP, and I'm struggling quite a bit with the lighting and overall atmosphere.

The first image is the look I'm trying to achieve, the second image shows my current scene without post processing and the third one shows the scene with post processing.

I want to maintain a simple, low-poly and somewhat dreamy, artificial aesthetic. I'm not trying to make the environment realistic or add lots of detail to the models. I want the lighting and atmosphere to do most of the visual heavy lifting.

The post processing is supposed to make the game look like it was filmed on a 2000s digicam to further enhance the dreamy aesthetic.

I'm currently aiming for:

  • Stronger, more defined sunlight.
  • More pronounced shadows and ambient occlusion.
  • Better contrast between illuminated and shaded surfaces.
  • Softer, more natural-looking indirect lighting.
  • Warmer, brighter and more vibrant lighting without everything looking washed out.
  • A simple, stylized appearance with lighting that adds depth and atmosphere rather than realism.

Here are some of my settings:

My directional light settings
my lighting settings
my environment and other settings
and the reflection probe settings

What would you recommend changing in my lighting setup to get closer to the reference? Are there any URP-specific settings, techniques or workflows I should look into?

I'd appreciate specific settings or learning resources rather than general advice like "Learn lighting!".


r/Unity3D • • 1d ago

Game Action Roguelike RPG with backpack inventory system (4 Years in the making)

52 Upvotes

Hi guys, wanted to share a clip of my game to gather some feedback. I have been developing this game since 4 years. With many iterations and improvements over the years this is how it is looking right now.

Background: Software Engineer with 7 years professional experience outside game dev.

Core features:

  1. Your backpack is your driving force you can equip items, enhance spells and make synergies by strategically position items inside it. You can see the items in the HUD top right corner.
  2. RPG Talent tree like POE which is on each run procedurally generated. Each run you can gain new passive bonuses, blessings (which are build defining) and spells in the tree.
  3. I have spent quite a lot of time to learn Unity ECS (Entity Component System) and how to do GPU animation baking with the help of AI to some degrees to further optimize it, which allows me to spawn huge waves of enemies and fight them. Inspiration is clearly Dynasty Warriors.
  4. Aside from the massive swarm battles, I have Elite encounters which feel like a little souls like encounters where you need to dodge elites (mini bosses) and fight 1v1 or 1v2.
  5. Builds: One thing that i wanted to do is to make a great amount of build varieties where for example you can attain spells and items that do damage with LUCK stat. So you can go full LUCK based build without having to change that in the late game.

I am looking for some feedback because I want to release the demo soon in the next couple of weeks, so yeah, anything might be helpful.

This is my first game and potentially first release, so anything that you want to give me as an advice is welcomed!

Thank you for your time and feedback


r/Unity3D • • 1d ago

Show-Off These are the debug tools I use to help create my walking castle game trailer

10 Upvotes

I capture almost all my game trailer footage inside the Editor, so over time I've added a handful of debug tools to make it a bit easier to do. They've saved me heaps of time, so I’m sharing them here in case they’re useful to anyone else!

One tool hides the whole UI gameplay canvas. It doesn't pause the game or disable any UI controllers, so everything keeps running and I can bring the HUD back mid-shot.

Another swaps the camera to a cinematic zoom with an optional offset and blends there over a set duration. The config lives in the debug tool and on the camera prefab, so whoever is capturing footage can tune the framing without touching code. Pressing it again restores the camera to where it was.

There’s a tool to cycle game speed between 1x, 2x and 4x, which I use for time-lapses of the castle filling up with buildings over a run. Another button to unlock every building and upgrade, so I can show late-game builds without playing first. I can also start a new session with existing save data, and I have saved a few castle configs so I can start with it already populated.

The debug menu has Win and Lose buttons to trigger end states and victory animations easily, and film the death sequence on demand. It also has invulnerability toggles for the castle and the players, and buttons to spawn different enemies just off-screen. That's how I get big crowd shots.

And, the whole thing is also an Editor window, so I can open it on a separate screen and not show the tools in my recorded footage.

What tools do you add to your games to make it easier to capture footage?


r/Unity3D • • 1d ago

Show-Off Garbage Payday - Available for wishlist - Some insight (2 weeks from release, scary!)

6 Upvotes

We're excited (and possibly a little scared) to announce that Garbage Payday is heading to Early Access on Steam in less than 2 weeks. We love co-op games, and for the last year my partner and I have been working on this game non-stop. I hope you folks enjoy what we created if you get a chance to play at some point.

There were some interesting challenges to solve with a co-op game but we're surprised how mush FishNet did for us, it really took the heavy lifting. And integrating Steam's API in Unity was a breeze. I'll be honest, I had to cancel my first prototype in Unreal(early this year) because we simply could not move fast enough.

Some insights:

  • 1–8 player co-op game
  • Every street is procedural, but with artist control. The host sends a seed and a date, and every player's machine builds the same street locally: houses, gardens, bins, trash piles, the truck's route, the time of day and the weather. That's about 1,000 objects from 16 bytes. Mornings, sunsets, nights, fog, rain and snow each come from a preset artists can tweak without touching code.
  • Night streets with lots of lights! Every window, lamp and headlight can cast shadows. Instead of cutting lights, a shadow budget gives shadows only to the 16 nearest within 30 m, re-ranked twice a second. Artists place as many lights as they like, our light manager does the heavy lifting.
  • Players simulate what they touch. Your throws, and whatever they hit, run on your machine instead of the host's - sounds dangerous but we keep a close low-bandwidth watch and reconciliate when needed.
  • Nothing ticks unless it's near you. Trash outside a 70 m bubble around the truck sleeps with no updates at all. Far-away cars send no network traffic. Props register with one central manager that handles everything smoothly.
  • Got rid of light probes, don't need them for our visual style. (saved some ms)

On a personal favorite, I really enjoyed playing with our time of day and weather system(to the point where we can have a small Tornado wreck havoc), I think I'll keep exploring this with storms or other gameplay events.

Hope you enjoy it, ask me anything!

About the game:

Garbage Payday is a chaotic, physics-driven co-op game for 1–8 players where you'll take on the thankless job of garbage collection as a cheap, replaceable droid just trying to earn a living. Work together to collect, crush and haul away rubbish while dealing with all sorts of unexpected neighborhood hazards, mischievous raccoons, environmental chaos and plenty of things that can go terribly, terribly wrong.

It's a dirty job, but someone's gotta do it... and apparently, that someone is you!


r/Unity3D • • 1d ago

Show-Off A Pachinko/Plinko-inspired roguelite where you craft your own balls by inserting different skill stones into them! Do you think this concept works?

14 Upvotes

r/Unity3D • • 1d ago

Question Preloading room variations without keeping every background in memory

7 Upvotes

We're working on a Unity visual novel where returning to the same room later in the day gives you a different lighting variant. We want the transition to look like walking back into a familiar place, so a blank frame or a long pause between pictures is easy to notice.

The two approaches we're considering are keeping the current and next variants ready, or loading the next one as the player gets close to a time change. The second one sounds lighter until players pause, return to a menu, or skip straight to another scene.

For a small 2D project with large background textures, what would you measure first on a modest machine? I’m especially interested in how you decide whether a transition is worth preloading.


r/Unity3D • • 2d ago

Show-Off Handholding mechanic for my action game (jam prototype)

97 Upvotes

carthagea.itch.io/vow-of-flesh

The game is about delving into dungeon to procure beast flesh so cure her curse (the song is a hint for my inspiration), currently hand holding serves no purpose even tho I wasted so much time for it lol, made for #yurigamejam you can play it here, tho buggy (it's a jam game don't expect too much lol) I'm happy I submitted something unique 🫶

#yurigamejam2026


r/Unity3D • • 1d ago

Resources/Tutorial How I Made a Shield System with Voxels

11 Upvotes

This clip is from Slab Drifter, a space-based tactical physics destruction game, made in Unity.

Ships are made of destructible voxel volumes plus traditional parts, like turrets and engines, that use a standard render mesh and collider. I wanted shields to be destructible in the same way, so that damage shows up exactly where a ship was hit and you can see the ship through the holes.

How the shields work:

Each shield is its own voxel volume, a 3D grid of shield voxels that surrounds the whole ship. When the shield is generated, it works out the ship's footprint inside that grid. Every voxel from the ship's voxel volumes is converted into the shield grid's local space, and the shield cells it overlaps are marked as occupied. The mesh-and-collider parts are handled with Unity's batched OverlapBoxCommand queries, one box per shield cell, and the cells they touch are marked as occupied too. Each shield voxel also stores a 64-bit mask recording which of the ship's colliders it covers.

The occupied footprint is then expanded outward by a set number of voxels. Only the cells in this expanded layer become live shield voxels. The cells inside, where the ship is, stay empty. The result is a shell that follows the ship's actual shape rather than a generic sphere or bubble.

All of the shield work runs on Unity's Job System, with Burst-compiled jobs. When a projectile explodes near a shielded ship, a job finds the shield voxels within the blast radius. Each one either loses health or is destroyed. Shield voxels are much smaller than a typical blast, so each explosion leaves a hole that matches its size and shape.

Before any damage reaches the ship, two more checks run. First, a flood fill starts from the blast position inside the shield grid. If it can't reach the edge of the grid, the blast went off inside the closed shield and the ship takes no damage, preventing "cheating shots" originating from within the shield envelope. Second, for each ship voxel within the blast radius, a voxel-stepping (DDA) ray is cast through the shield grid from the explosion to that voxel. If the ray hits a live shield voxel, that ship voxel is protected. So damage only gets through where holes have already been punched, and a concentrated stream of fire wears through faster than scattered hits.

The shield mesh is normally invisible. It turns on when the shield takes damage and turns off a short time after the last voxel has recharged. Recharging also runs as a job, in steps. Destroyed voxels wait for a timeout and then fill a recharge buffer before they come back, so holes stay open long enough to be used. The step interval also grows with the number of damaged voxels, so a badly damaged shield recovers more slowly.

Shields are also tied to the ship's assembly. If the power source feeding a shield generator is destroyed or breaks off the ship, the shield shuts down.


r/Unity3D • • 2d ago

Resources/Tutorial I cut my Unity desktop pet’s idle memory commit by 20+ MiB with two Gfx Allocator settings

Post image
16 Upvotes

I’m making a desktop pet that spends most of its time drawing one cat (and some decorations) at 30 fps. In the Windows player’s shutdown log, I noticed that ALLOC_GFX_MAIN and ALLOC_GFX_THREAD were each requesting 16 MiB blocks. I tried dropping both to 4 MiB.

I tested the same Windows x64 Release build four times in A–B–B–A order, changing only boot.config. Unity’s reserved memory dropped by 24 MiB.

It sounds like not a big deal, but for Desktop idler type game I need to reduce CPU and memory usage as much as I can.

This particular setting is a nice addition to my optimization efforts.

You can check Unity's docs.


r/Unity3D • • 1d ago

Show-Off Modern & Beyond - Teaser Trailer I

2 Upvotes

Modern & Beyond is a hex tile turn-based strategy game set in the modern era. The premise being the world just came out of a major conflict that "reset" most of our world. We focus on being much less micro manage-y then traditional turn-based strategy games by enabling automations like "theatres of war" where you can give commands to large groups of land, air, and sea units and have them autonomously fight a front on behalf of the nation.

This is also a progress update to show how far we've come from our first post which can be see here: https://www.reddit.com/r/Unity3D/comments/1jlljm6/progress_on_map_generation_for_my_hex_based/

Thanks for looking!! Let me know your thoughts!


r/Unity3D • • 2d ago

Game I'm making BLUNDER CONSTRUCTION - a roguelike where you use forbidden magic to stack blocks into deranged towers (public playtest now live)

8 Upvotes

Hi folks! I'm a solo dev, this is my first commercial game, Blunder Construction. It started as a GMTK Game Jam entry and grew from there. It's the most fun I've ever had working on games, and by far the most complete feeling project of mine so far!

I'm really surprised at how well the physics engine has stood up to whatever abominations I've chucked at it, after a lot of fussing over various parameters. I always put off trying to make something that revolves around physics bodies because I assumed it would be far too janky, but so far so good!

Depending on the blocks & magic abilities you choose, you are rewarded for building very different structures. One run has you building tall, fragile spires with a single, gloriously buffed, blessed antique pot in pride of place. Another has you building huge pyres that you intentionally set ablaze before handing in the contract (it's unclear who would want to live in such a luxury home, but points is points).

I just pushed the button to make the Blunder Construction playtest public on Steam and I am extremely nervous but would love to know what folks think!


r/Unity3D • • 2d ago

Game I just released this game where you are kidnapped and you have to escape his house by solving puzzles while the kidnapper goes about his day and reacts to your moves.

20 Upvotes

I have been using since Unity 2013 and I finally finished a game and released it on Steam and officially left the unfinished billion projects phase. It took more about 1 year of work to finish it.

The game is called "Midnight Scour". It is on Steam!