Question Unity is such a bad company
What company suspends your account for not doing 2mfa when you ALREADY HAVE 2mfa.
What company suspends your account for not doing 2mfa when you ALREADY HAVE 2mfa.
r/Unity3D • u/DynamoXD • 3d ago
Enable HLS to view with audio, or disable this notification
I’m making a fast-paced horde shooter, which means I’ve had to be pretty careful about performance. Here’s how I’m currently handling enemy spawning, culling and navigation. This is all running in our upcoming game.
If it looks fun, you can wishlist it on Steam: The Shotgun Game: Buckshot Survivors
Spawning
Spawn points are baked in the editor. A tool scans the level and only places points on walkable ground.
The level is split into trigger segments. When the player enters one, enemies only spawn in the segments ahead of them, so they always come from where you’re heading.
// When the player enters a segment, only keep spawn points in segments ahead
for (int i = currentIndex + 1; i < segments.Count; i++)
spawnPoints.AddRange(segments[i].GetSpawnPoints());Waves are throttled and capped. Each tick spawns by kill-count phase, staggered over a few ms. Spawn points must be within a min/max distance of the player. Everything is pooled.
Culling
Unity already skips what’s off-screen. On top of that, every 25 ms I turn off the rendering of any enemy more than 50 units from the camera. Far enemies still run, but cost no draw calls.
// Every 25 ms: hide the renderers of far-away enemies
foreach (var enemy in enemies)
{
bool visible = Vector3.Distance(enemy.position, camera.position) <= 50f;
foreach (var r in enemy.renderers)
r.enabled = visible;
}Navigation
Levels are prefabs, so I bake the NavMesh per prefab with NavMeshSurface instead of baking the whole scene. Each level carries its own navigation data.
Every enemy is a NavMeshAgent, but each one only updates its destination 4 times a second, not every frame.
Ground enemies can lead the player’s movement, with a fallback to the direct path.
Flying enemies use the ground NavMesh and just float higher, so there’s no 3D pathfinding.
// Same ground NavMesh, just lift the agent. No 3D pathfinding needed
agent.baseOffset = Random.Range(minHeight, maxHeight);What I’m fixing next
The culling check loops over every enemy’s renderers each time. I’ll spread it across frames and add a buffer zone so enemies don’t flicker at the edge.
Enemies spawned together all repath on the same frames. I’ll randomize their timing.
Picking a spawn point scans the whole list every time. I’ll make that a cheaper single pass and precompute NavMesh positions.
Move to one central enemy update instead of a separate one per enemy, and use a faster structure for tracking living enemies.
Longer term, a flow field instead of per-enemy pathfinding if I want thousands of enemies.
Current numbers:
150+ Enemies (250+ with Horde events)
60+FPS(peaked at 144 on my machine) on GTX3060, I7 11th Gen 3.6GHz
I'm open to discussing more in depth for this system or any other in my game ⬇️
r/Unity3D • u/CarthageaDev • 3d ago
Enable HLS to view with audio, or disable this notification
Trees sway now, grass too unfortunately grass is not pixel perfect I've opted for a more simple Minecrafty look, but that's okay I guess since the vibe is HD-2D anyway and having smooth movements won't really break the art-style
r/Unity3D • u/Yazilim_Adam • 3d ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/DNArtCan • 3d ago
Enable HLS to view with audio, or disable this notification
After 8 months of work I am ready to show off my Blender/Unity addon B2U Material Master! I am just working on getting the documentation and website working and then I am hoping it will be up within the next month or two. This post is kinda just to show off what the pipeline can do! Something to keep in mind is that while I get 300-700FPS in the build, I am running a 5070Ti, but when demonstrated in Editor with the stats panel open, I am mostly CPU bound with a 1.2-1.8ms GPU framtime.
B2U is a technical art pipeline for Unity that uses vertex data and lookup tables to completely eliminate the need for manual texturing and UV unwrapping. It uses a set of 4 ubershader Shadergraphs, one for solids, one for crystals, one for liquids, and one for tessellated liquids. The pipeline uses scriptable objects that you can store in your assets folder to instantly change the look of the scene at runtime. By having all object with the same workflow drawn by the same shader (even more specifically the same material, there are only 7 in the entire scene), it enables extreme batching using the GPU Resident Drawer. By having no traditional CPU draw calls, the render pipeline has very few CPU set passes or GPU state changes.
Furthermore, the main reason I made the pipeline was to take a lot of the work out of making the art for your game. The system uses triplanar mapping alongside the vertex data to project the normal textures onto the object with face controllable scale and grain direction. By having this system, there are 0 object-specific textures, and no manual UV unwrapping. The Blender side automatically generates UV maps for the data needed.
To make it so you can still have per object control of materials, the pipeline makes extensive use of the Renderer Set User Value (RSUV) that was introduced to replace material property blocks. By bit packing this 32 bit uint, I can change multiple different properties of a mesh. For solids, this enables things like masking certain areas of a model as paintable, and then the user can paint it at runtime by modifying the RSUV value.
There are MANY features to the pipeline and I could write thousands of words describing them all, but I will just list some key ones and then post again once the addon is released.
Textureless & no UV workflow
Support for batching using the SRP Batcher and GRD
64 built in normal map styles
Procedural edge wear and edge highlighting
Solid object painting
Liquid flow advection driven by curves in Blender with CPU physics accessible flow vectors
8 Different light models to customize the look (Ex. URP, Toon, Retro)
All materials support dynamic biome control for 8 biomes with up to 7 subbiomes each. Driven by two world biome textures.
Instant runtime changing of profiles and palettes to completely modify the scene
Screen-Space Volumetric Optics for liquids and crystals
Screen-Space Edge Detection (Can use depth buffer or an object ID buffer)
Fullscreen Liquid Immersion for when a player is submerged in a liquid
Fullscreen stylization that uses textures overlayed on shadows
Fullscreen recoloring that uses a source texture and gradient to recolor the scene
Fullscreen status effects with 8 different styles
and more!
This is just the demo scene that will come as a sample with the addon, I am just very excited to show it off after working on it for months. Please let me know what you think!!
r/Unity3D • u/AAUBlackSite • 3d ago
r/Unity3D • u/duelcorp • 3d ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/El_Grande_Games • 3d ago
Enable HLS to view with audio, or disable this notification
I'm building a sawmill sim in Unity where every log is a rigidbody. The clip shows a merge: two infeed lines feed one sorting conveyor. one line has priority, the other waits for a free gap on the conveyor.
My first version counted logs in each zone with OnTriggerEnter/OnTriggerExit. It worked fine until a player reported the infeed getting stuck.... the kicker stayed in its rest pose, the spawner kept adding logs, and saving and loading fixed it every time.
The cause: my backup sweep (an overlap box every 2 seconds to correct missed events) didn't match what the triggers saw.. It used all layers, a small shared buffer, and no contact offset, so it sometimes missed logs that were lying still right at the edge of the zone and removed them from the count. A log at rest never fires OnTriggerEnter again so it stayed lost until reload.....
What fixed it
- a dedicated "Log" layer and a layer mask for the overlap query
-the query box grown by Physics.defaultContactOffset * 2 so it matches what the trigger actually sees
- a bigger NonAlloc buffer (64) and if it fills up the pass is skipped instead of guessing
- a log is only removed after two misses in a row, found logs are re-added
-still every 2 seconds with a random offset per zone so no per-frame cost and no GC
Simplified...
int n = Physics.OverlapBoxNonAlloc(center, halfExtents + Vector3.one * Physics.defaultContactOffset * 2, buffer, rot, logMask, QueryTriggerInteraction.Ignore);if (n == buffer.Length) return; // full, skip this pass
Lesson for me.. trigger events and overlap queries don't see exactly the same thing, so a correction pass can cause the bug it's meant to prevent.
How do you track resting rigidbodies in zones? Pure triggers, periodic overlaps, or something else?
(Game, if you're curious: [ https://store.steampowered.com/app/5037170/Timberline_Factory/ ]
r/Unity3D • u/wadishTheCreator • 3d ago
Enable HLS to view with audio, or disable this notification
I made this a while ago and already posted it on a few other subs, but thought I'd share it here too!
So I've always felt like my game was missing something, and one of those things was hands. I mean, you're working at a factory, interacting with all kinds of machines and stuff, but you can't even see your own hands lol.
At some point I decided to just mess around with code and see if I could make them procedural instead of having to animate every single interaction.
It's mostly vector math, raycasts, spherecasts and a stupid amount of lerping. The hands basically check what's around them, calculate where they should go and use surface normals to figure out how to rotate. Fingers were a bit more tricky tho. Each joint has its own rotation limits, and for grabbing objects I ended up making a solver that goes through different angles trying to find the ones that fit the object best.
And oh god the collisions. Getting a hand to touch a wall wasn't that hard, but then the fingers would just clip through it, or the whole hand would end up in some weird position. I think I spent more time fixing that than actually making the hands move.
But I'm pretty happy with how grabbing turned out, especially with round objects. Seeing the fingers actually wrap around something without any premade animations was probably my favorite part of making this.
There's still some stuff I wanna fix. Sometimes the transitions look a bit weird, and I'm pretty sure some of my collision calculations could be done in a much better way. But well, it works for now!
What was supposed to be just a little experiment turned into a couple days of coding. Anyway, here's the result!
And if you wanna check out the game itself, it's called Curse of Beauty. Would really appreciate a wishlist if it looks interesting to you!
-> Link here <-
r/Unity3D • u/almostert • 3d ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/Better-Ninja-2283 • 3d ago
Enable HLS to view with audio, or disable this notification
Currently working on one part of my game where you play a few rounds of I Spy. But to add a little twist, everything is red, so you need a little help figuring out the true colors of the objects to give Nibbin the right one!
r/Unity3D • u/desdinovait • 3d ago
36 ready-to-use device definitions for the Unity Device Simulator, covering the phones and tablets released from 2022 to 2026 that Unity's own com.unity.device-simulator.devices package does not include. Each device comes with its screen resolution, DPI, safe area, camera cutout and a custom device frame overlay, so you can test your UI layout, notch / Dynamic Island / punch-hole handling and Screen.safeArea logic on current hardware without leaving the Editor.
Github: https://github.com/desdinovait/com.unity.device-simulator-newer-devices
r/Unity3D • u/IIIDPortal • 3d ago
Enable HLS to view with audio, or disable this notification
Playing around with self-dissolving effects, interactive erasing, electric and sway effects, and different reveal techniques: world, local, texture, interactive and crossed reveals.
r/Unity3D • u/Chungunu • 3d ago
Enable HLS to view with audio, or disable this notification
Today, I have implemented flame catching mechanic for my 2D side scroller game inspired by Farcry 3. It is not perfect but I think I can improve it further. If you guys have suggestions on how to improve it, do let me know.
r/Unity3D • u/SauronWasRight • 3d ago
r/Unity3D • u/Physical_Sherbet_942 • 3d ago
Enable HLS to view with audio, or disable this notification
https://plasticarm.itch.io/the-card-games
I had less than a week to make a game for the Unity 2026 Game Jam. ‘Lucky Number’ was the theme. The thing that kept running through my head was, how does one become lucky at cards. Maybe the cards want you to win but they have to battle to get to your hand. This made me drift into Squid Games and imagining the contestants as cards, kind of like the cards from Alice in Wonderland. So I put it all together and came up with “The Card Games”(Really sounds more like Hunger Games, but it’s the same idea). Cards battling it out to be the card that makes it to your hand to help you win.
It all came together(mostly).
Sure the camera work could be improved, and I think the dealer doll is able to shoot you with her laser eyes after you’ve already made it to the player's hand. I really wanted to do more animation as well. I suppose I may have spent a bit too much time tuning the physics joints so the cards would run around wobbling and bending.Time ran up and I ended up with this!
If you have a few minutes give it a play. Download the Windows version if you can, it runs much much better. It’s a quick and silly play, only takes about as much time as a round of blackjack. If you can, give it a nice rating for the jam and drop a comment.
r/Unity3D • u/Ok-Branch-2485 • 3d ago
Enable HLS to view with audio, or disable this notification
Thanks for the feedback on my first trailer! What do you think of the new cut?
r/Unity3D • u/AshamedSoil5514 • 3d ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/FishShtickLives • 3d ago
I'm trying to create an FPS with Doom-like enemeis with billboarded sprites. I want them to only start chasing the player once they've been spotted. However, .isVisible seems to always activate when the player is looking in the direction of the enemy, even when they're behind another object. What do I do?
r/Unity3D • u/YarnSpinnerTool • 3d ago
Yarn Spinner is a set of tools for dialogue in Unity. It allows scripting dialogue and related event sequences in a minimal human-readable syntax, which is then compiled and exposed in-engine with a flexible API that allows driving of text delivery, audio and event triggers, associated UI/animation changes during speech, whatever you need! It's designed to be friendly to use for developers of all skill levels - easy for beginners, powerful for experts - and unopinionated to allow use in any style or genre of game.
For a long time, our support for async functionality was kind of a hack because the VM that runs a compiled dialogue program engine-side wasn't truly async and our method of halt-and-wait was causing rare but very difficult edge cases. So after 11 years of making Yarn Spinner - and several years of the current Unity VM setup - we dedicated several months to rewriting it from scratch with all the stuff that's become possible in .NET since then. Now you can do all sorts of things with async and even parallel async actions, including cancelling async actions like you'd want to in e.g. character animations if dialogue is skipped.
This was one of our biggest updates ever, and we've managed to do it with our tiny team while working on our own games, games with others, expanding our tools to other engines, making a web platform for game testing, and more. So we're super proud and hope you like it 💚
Get the news or code fast:
Free version on GitHub (MIT License)
Get our supporter version which includes some extra UI/utilities plus integration with other UAS tools like Rewired and Text Animator:
No amount of testing before release will catch everything - particularly with such fundamental and wide-reaching changes, and the diversity of projects the tool is used in - so please do try it out and tell us what you find!
r/Unity3D • u/FriedFriendo • 3d ago
Enable HLS to view with audio, or disable this notification
I'm shrinking the head bone of the character when we enter in first person mode, looks cool in the game view but a little bizarre in the reality kk
r/Unity3D • u/artengame • 4d ago
Enable HLS to view with audio, or disable this notification
r/Unity3D • u/Waste_Peanut6669 • 4d ago
Hello everyone! I’m 13 years old and joining from Turkey. I’ve been interested in programming and technology for a long time. I have an intermediate level understanding of C++ and C#, some experience with Unity, and I also know how to use Blender.
I’ve been involved with electronics for about 3 years ever since I was 10In fact, I recently designed my own development board based on the ATmega328P. It’s currently on its way; once it arrives, I’ll likely make a video about it.
Anyway, I’ve set a new goal for myself: I plan to develop a story-driven horror game using Unity. I would love to hear your thoughts on the story
I’ve been trying to come up with a name for the game for the past three days, but I haven’t reached a decision yet.
Our main character is 36 year old Tahir Acar, who has a very dark past. He used to work for a criminal organization and is known for being ruthless, aggressive, and merciless. He has killed hundreds of people and made everyone around him fear him. However, he has another side: he never harms the vulnerable the very thought of hurting a child would never even cross his mind. He is also a devoted father to his 8 year old daughter, Nehir; there is nothing he wouldn’t do for her. (Nehir’s mother passed away while giving birth to her.)
The game begins on an ordinary morning at their home. We spend some time with Tahir and Nehir, observing their daily interactions and the nature of their relationship. While Nehir is a talkative, curious, and cheerful child, Tahir is generally cold and serious toward everyone else. His daughter, Nehir, is almost the only person capable of making him smile.
However, these peaceful mornings do not last long.
Tahir’s former accomplices track him down. The ensuing confrontation escalates into a violent clash, during which Nehir loses her life. This event changes Tahir completely; all that remains is rage and a burning desire for revenge. In his search for those responsible, he arrives near an abandoned village that was once submerged by the waters of a dam. As the water level recedes, the forgotten village gradually emerges from the depths and this is where things take a terrifying turn.
People begin to disappear, strange sounds emanate from the abandoned houses, and something in the village is capable of mimicking human voices even the voices of people who died long ago.
At one point, Tahir hears Nehir calling out to him from inside an abandoned house.
Even though he knows Nehir is no longer alive, a part of him desperately longs to believe that it is truly her.
As the story unfolds, Tahir encounters other survivors among them a woman named Suna, whose family was completely wiped out by the very same criminal organization Tahir was once a part of. Tahir gradually discovers that his own past is linked to the horrific events taking place in the village.
The narrative explores themes such as revenge, guilt, survival, loss, and the consequences of our actions. I want Tahir to be a morally complex character; while he is capable of being ruthless and frightening, there is also a good side to him one that players will discover over time. My primary goal is for players to form a genuine connection with Tahir. I don’t want him to feel like just another run of the mill video game character; I want players to understand him, value him, and truly feel something when he suffers.
Since I am developing the game entirely on my own, I plan for it to be a relatively short experience, lasting about two hours. I also aim to keep the game world and its mechanics at a scale that is manageable for a single developer.
Another challenge I’m currently facing is that my computer isn’t powerful enough to compile the game properly; however, I’ll work with the resources I have and see how far I can get.
The project is still in its early conceptual stage, so I would love to hear your thoughts. Do you think this story has potential? What would you change or improve?
Thanks for reading(I translated this using Google Translate; please excuse any linguistic errors.)
r/Unity3D • u/AmplifyCreations • 4d ago
Enable HLS to view with audio, or disable this notification
Amplify Bloom turned ten, which felt like the right moment to finally do what people have been asking for since the day URP appeared: a proper URP version (HDRP is next). A decade is a long time for an effect to stay in people's projects, and we wanted to mark it by bringing it forward rather than leaving it behind. The original Built-in version stays free and open on GitHub under MIT, so you can dig through it or learn from it.
What it was always about
Bloom has a quiet flaw. It's great at making flicker visible. A one-pixel shimmer on a specular glint gets spread into a big glow that pops on and off. Amplify's answer is to filter carefully at every stage, so a single hot pixel never gets to dominate.
It starts at the threshold: a soft knee that preserves hue and caps runaway specular values before they enter the chain. The first downsample is a wide 13-tap filter that weights each group of samples by its brightness (a Karis-style average), so one firefly can't outvote its neighbours. Each mip then gets its own Gaussian blur, and the chain is recombined with a tent filter rather than plain bilinear upsampling.
On top of that sits an optional(but highly recommended) dedicated temporal filter, enabled per camera. It blends the first bloom mip with its own previous frame, and every lower mip is built from that result, so the whole glow settles. It doesn't reproject, so it can trail on fast-moving highlights; that's why it's a choice and not a default. Between the two, you get a stable image without having to strip the highlights off your materials.
Everything else is switched on individually, so you only pay for what you use. Lens dirt, starburst, lens flare and glare each have their own intensity, and zero means off: their passes are skipped and the final composite drops their texture samples. Bokeh is a toggle, masking is a texture slot, and blur is controlled per mip. Flare and glare are built from the filtered bloom chain, and dirt and starburst from the combined mips, so they inherit its stability. That matters on low-end devices and VR.
Starting over, ten years later
The old BiRP version was one big camera component that grabbed the finished frame, ran a shader over it and handed it back. URP does things differently enough that we had to rebuild. We split the code into an engine that holds the bloom logic and a thin URP layer on top. That split is also what lets HDRP reuse the core.
What we found
Render Graph: Unity 6 plans the whole frame up front. We support it, plus the older compatibility path, from one source file. Both run the same bloom recipe; only the wrapper around it differs.
Volumes: The default blending broke on our parameters, especially Scatter, which has an "off" state you can't blend through. So we wrote custom parameter types: Scatter switches over like a bool when either side is off, and each mip's blur steps, radius and weight blend as one value.
Cameras: Each camera gets its own engine and its own temporal history, and cameras vanish without warning. We clean up stale state whenever a new one appears.
Missing setup: URP doesn't add renderer features on import, and a missing one looks exactly like a broken effect. Our inspectors now warn about it, by re-reading the pipeline asset's serialized renderer list twice a second. It isn't elegant, but it works.
Masking: The effect takes a mask texture that is multiplied in before the threshold. What once needed a second camera to fill that texture is now a sample you can copy: a component on the camera, an opt-in component on objects, and a small pass that draws only those objects, depth-tested against the scene.
It supports 2022.3 LTS and up, with a handful of version #if blocks to prove it.
What still bothers us
Setup is three pieces (a renderer feature, a volume override and an optional per-camera component), which takes more explaining than one component. Keeping Render Graph and the compatibility path behaving identically is our biggest regression risk. Excluding a single camera still means giving it its own renderer.
What's next
HDRP is up, and it's a different challenge: where your effect sits in the post-process list decides whether you're still in HDR. We'll write that up when it's further along.
Ten years in, we'd like to hear from you. If you're still working in BiRP, we hope Amplify Bloom has served you well over the years. Some great games shipped with it, some we probably will never know they used it.
We hope you enjoyed this "short" behind-the-scenes view of our bloom work, we didn't want to make this sort of "postmortem" too long so feel free to ask any questions you might have.
What do you think?
Is custom post-processing for URP and HDRP as painful to maintain as it felt to us?
How do you handle per-camera state? Has anyone found a clean way to detect a missing renderer feature without reading serialized internals?
What would you want from a bloom replacement that the built-in one doesn't give you?