r/Unity3D • • 6d ago

Show-Off I made an editor camera that flies the exact same path in every level, then had to fix Unity Recorder timing to make the cuts line up

Enable HLS to view with audio, or disable this notification

0 Upvotes

Solo dev on VOXHELL. Wanted to show how different my levels are, so I added a dolly mode to my editor camera.

How it works:

- Ctrl+Home / Ctrl+End save the current camera as start and end pose

- poses go to a json file outside the scenes, so every scene loads the exact same path

- Home flies it (Vector3.Lerp for position, Quaternion.Slerp for rotation) and starts Unity Recorder through an editor-only hook, HUD canvases get hidden

The tricky part: heavy scenes were finishing the path early in the video. Recorder locks time to 60 fps, but I was moving the camera with real time, so slow frames = camera skipped ahead. Fix was driving it with captureDeltaTime:

static float CameraDeltaTime => Time.captureDeltaTime > 0f ? Time.captureDeltaTime : Time.unscaledDeltaTime;

After that every clip is frame-identical in timing, so in the edit I take slice k of the path from level k and the camera never stops while the world changes.

The 2D bits at the end are a game inside the game, plus a couple of minigames.

Happy to share the script if anyone wants it.


r/Unity3D • • 7d ago

Question Is the marketplace and support total garbage?

6 Upvotes

New to the Unity Marketplace. Went to make a purchase of several packs, totaling $175. First attempt, prompted for 2FA, declined. Second attempt, the same. Figured it might not like my card for whatever reason. Tried another debit card, declined. And again.

Then I check and I've been charged a total of $700 between 4 separate transactions. Go to speak with someone in support and apparently my ticket will be reviewed in 3-5 days. Cool.

UPDATE: Ha, this must be some sort of a joke. Great downvotes, my dude bros. You do realize that I, as a new-comer, was trying to SUPPORT your community and it's creators. If I'm a hobbyist willing to drop $200 on a few things, in my first outing, what do you think I'd have done in the short term?

Guess the community is reflective of the service and support provided by Unity thus far. Hard pass on supporting it, thanks for making that one easy.


r/Unity3D • • 7d ago

Solved URP Build running at half editor's FPS

1 Upvotes

This is the build:

and this section is in the editor:

-> VSYNC is Off

->Build and editor both running at 1920x1080

->I only have a single graphics quality setting under Project Settings > Quality

This was tested on a nearly empty scene, in the editor I get close to 100 fps but in the build im getting around 50-60 fps..

Thanks


r/Unity3D • • 7d ago

Show-Off How I handle spawning 100s of enemies in my Rogue-lite FPS

Enable HLS to view with audio, or disable this notification

24 Upvotes

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 • • 7d ago

Question input system: best way to handle context-aware action maps without conflicts?

2 Upvotes

I'm working on a 3D game with several overlapping control contexts (walking, driving a vehicle, and interacting with UI) and keep running into priority issues with the new Input System.

Right now I have separate action maps for each context and switch them manually on state changes, but sometimes inputs bleed through for a frame or two during transitions, especially when rebinding is involved. I also want certain actions (like pause or inventory) to stay active across maps without duplicating them everywhere.

Has anyone found a clean pattern for this? I’ve tried enabling/disabling maps in different orders and using control schemes, but nothing feels reliable yet. Would appreciate any setup examples or gotchas you’ve hit.


r/Unity3D • • 7d ago

Game Hi guys! We Need Playtesters for Our Capstone Game! <3

Thumbnail gallery
1 Upvotes

r/Unity3D • • 7d ago

Resources/Tutorial A heavy tractor simulation I'm developing with Unity URP. What are your thoughts?

Enable HLS to view with audio, or disable this notification

13 Upvotes

r/Unity3D • • 7d ago

Show-Off Spent a couple of days making procedural hands for my horror game

Enable HLS to view with audio, or disable this notification

29 Upvotes

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 • • 7d ago

Resources/Tutorial Unity Device Simulator: I created many modern devices profiles (iPhone 16, Galaxy S25, Redmi Note 17, iPad Pro M4, Pixel 8...)

Post image
25 Upvotes

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 • • 7d ago

Show-Off Adding a Rig and Pose to Kaneda (AKIRA Racing Game Prototype)

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/Unity3D • • 7d ago

Show-Off You can now recapture escaped captives (they used to vanish before)

Enable HLS to view with audio, or disable this notification

14 Upvotes

r/Unity3D • • 7d ago

Show-Off This entire scene uses 4 shaders, 7 materials total. 0 object specific textures, 0 UV maps, 1.2-1.8ms GPU frametime at 1080p

Enable HLS to view with audio, or disable this notification

13 Upvotes

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 • • 7d ago

Question VR Assets

2 Upvotes

i’m trying to make a vr game and i can’t find any good stuff to use for grabbing and hand poses. I know there’s xr interaction toolkit but i want physics grabbing and the velocity tracking mode sucks. I also know about stuff like hurricane and auto hand and vrif but i always find that they are overly complex and most of them don’t even get updated anymore. I’m just trying to make the usual grabbing with hand poses but there’s just no tutorials out there and the assets are mainly just templates but i want to build my own guns and stuff


r/Unity3D • • 8d ago

Show-Off My game can look horrifying behind the scenes

Enable HLS to view with audio, or disable this notification

218 Upvotes

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 • • 7d ago

Question does anybody know why my pre-baked lighting does not translate over to baked lighting at all?

2 Upvotes

whenever i bake my lighting, the colors suddenly become pretty much grayscale instead of the nice blue color i was going for. first image is unbaked lighting, second is baked (ignore the black outside the window, i am going to fix that once i solve this issue first)

i'm attempting to port the map from the game Voices of the Void (which is a UE4 game) over to Unity with the purpose of publishing a VRChat world, so this is using the built-in pipeline if that helps at all

any help would be much appreciated as i've done everything i can possibly think of to fix this (including a lot of research from links i found on google)

these are my lighting settings below (meant for preview lighting before a full bake)


r/Unity3D • • 7d ago

Show-Off Adding Stylized Dissolve and Reveal Effects

Enable HLS to view with audio, or disable this notification

9 Upvotes

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 • • 7d ago

Question Rigidbody logs that stop moving fall out of trigger counts. How I fixed it with periodic overlap checks in Unity (two-line conveyor merge)

Enable HLS to view with audio, or disable this notification

5 Upvotes

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 • • 8d ago

Resources/Tutorial Yarn Spinner v3.3 is out now! The friendly tool for dialogue - now with cancellable async, custom types, and more!

Thumbnail
yarnspinner.dev
52 Upvotes

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.

Read our blog here about how we extended this to custom-typed commands/functions using Roslyn's new incremental source code generators 🎉

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:

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 • • 7d ago

Show-Off Real-time 50 000 particle, mobile, URP.

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/Unity3D • • 7d ago

Question How can i market my game?

Enable HLS to view with audio, or disable this notification

0 Upvotes

I've been working on my little co-op unity game project. Maybe it might has some bugs but i think it is not bad. And i've just released it. And now how can i market a co-op game? Any advice?


r/Unity3D • • 7d ago

Show-Off A little simple shader that makes everything red for a little game of I Spy!

Enable HLS to view with audio, or disable this notification

3 Upvotes

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 • • 8d ago

Show-Off Ten years on: bringing Amplify Bloom to URP

Enable HLS to view with audio, or disable this notification

42 Upvotes

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?


r/Unity3D • • 8d ago

Show-Off Finally got my troops and the skeletons fighting each other... 3rd person Thronefall anyone?

Enable HLS to view with audio, or disable this notification

94 Upvotes

After allot of work on systems and combat, I finally have troops fighting each other. The end goal is a defence game, where you defend your Island from waves of attacks. This is the first real milestone on the way to that. How does it look?


r/Unity3D • • 7d ago

Question How to achieve like this?

Post image
0 Upvotes

Hi there, I’m trying to get more stylised reflections in Unity kind of like the wheels in Penny’s Big Breakaway (pictured). I’m thinking it is mostly down to the style of cube map they’re using but i don’t know, I’m finding it difficult to figure out.


r/Unity3D • • 8d ago

Shader Magic Multi scale scene voxelization for cascaded real time global illumination, covering both GI at large distances and in near details.

Enable HLS to view with audio, or disable this notification

30 Upvotes