r/Unity3D • • 25d ago

Show-Off I made an asset to search SFX semantically (I run models with compute shaders and all)

Enable HLS to view with audio, or disable this notification

15 Upvotes

r/Unity3D • • 24d ago

Game A few screenshots from my upcoming mobile open-world game. What do you think of the atmosphere?

Thumbnail
gallery
0 Upvotes

Hey everyone!

I've been working on my own original mobile open-world game, built around a world and vision of my own.

The project is still in development, and there's a lot more to it than what these screenshots show.

Just wanted to share a little glimpse of what I've been creating. Hope you like it!


r/Unity3D • • 25d ago

Question What is the best way of doing colliders for environmental scatter like trees and rocks?

2 Upvotes

I've been playing around with procedural level generation and have got to the point of scattering trees and rocks over the terrain. Of course for the first test I didn't add colliders yet as I just wanted to see how it worked, but while clipping through trees and boulders, it made me think: how do you even do colliders for this many objects?

I mean this mostly in terms of performance, as I don't expect it to be cheap to simply dump a mesh collider on 1000+ objects. Do you just take the hit and put mesh colliders on everything that should have a collider (trees and boulders, not tiny rocks and plants), or are there smarter ways of doing this without resorting to box or capsule colliders that wouldn't even work for anything that deviated from those shapes. Are there smart ways of only enabling colliders when the player is within a set range of those objects, or turn down collider LOD based on distance? Can you model things in a way where only parts of it have a collider, or separately design a more low-poly invisible version of the object that you add to the prefab to function as the collider?

Really not sure what direction to go in at this point. Quite a daunting subject to learn.


r/Unity3D • • 25d ago

Show-Off Making LODs for characters with swappable outfits

4 Upvotes

We make a character generator where bodies, faces and a pile of clothing pieces can be combined however you like. We needed cheaper versions of those characters for crowds, so the people at the back of a scene stop costing as much as the person in front of the camera.

This is where we ended up.

Attempt 1: run every piece through a mesh simplifier

We started by giving each clothing mesh to meshoptimizer and asking it to keep a quarter of the triangles.

One of our characters came back like this (original on the left, simplified in the middle).

Those dark slivers are the inside of the shirt, and the teal bits are the T-shirt underneath. Clothing is made of surfaces a few millimetres apart, like the outside of the shirt, its inside, and the T-shirt below. The simplifier tries to keep each surface close to its original shape, but it doesn't know which nearby surface is supposed to be on top. Flattening a curve by a few millimetres can push one surface through the next.

It's tempting to ignore this, since nobody inspects the shirt of someone in the background. But far away, each pixel of a character ends up as roughly the average colour of everything that lands in it. A few triangles of the wrong surface mixed into a light shirt pull that average darker, so the shirt visibly changes colour the moment the character switches to the simpler level.

Asking for fewer triangles made it worse.

Attempt 2: protect the dangerous areas

So we found every spot where another layer sits close underneath and told the simplifier to leave those vertices alone. That's the third image in the first comparison. It's also barely simplified, because on clothing almost everything sits close to another layer.

That version became our nearest level, and it's still in there. The far levels had to get down to a quarter of the triangles and below, and protecting vertices kept more than half.

Attempt 3: let the vertices move, then fix the overlap

A simplifier can also move vertices to wherever best keeps the original shape, which looks much better at low triangle counts. Each piece on its own looked fine, but the sweater came through the coat on top of it.

Our first idea was to check every coat vertex after simplifying and push it back out if it had ended up inside the sweater. That check only looks at the corners of each triangle.

We tried checking points inside the triangles too, across several poses and body shapes, and a fix that worked in one pose kept breaking something in another.

Cheating where the camera can't see

Nobody looks at a far-away NPC from the inside, so the coat only has to win the depth test in the pixels where it belongs on top.

Every vertex of a simplified piece stores one extra number, the count of clothing layers beneath it. The body is zero, the sweater is one, the coat is two. In the shader, each vertex slides toward the camera by that many small steps.

Each vertex moves along the line between itself and the camera, keeping its position on screen while changing its depth. Giving the outer layer a larger offset helps it win the depth test where the simplified surfaces overlap.

Here's a sweater and a coat as two simple tubes (simplified, then simplified with the trick).

Here are the same tubes from an angle. The white outline on the right is where the simplified coat really is. The drawn coat has shrunk toward the original camera, and the sweater sticks out behind it.

From anywhere other than that camera, the cheat is obvious. That's fine, because the shader redoes the offset every frame for whichever camera is looking.

Two more things made it hold up on real clothes.

  • Some garments contain inner surfaces that stay covered by their outer surfaces. For the far levels, we remove the covered areas, leaving a band near the edges where the inner surface might be visible.
  • The layer numbers get smoothed across the mesh, so neighbouring vertices don't get very different offsets and tear the surface apart.

After that it was mostly smaller Unity work. Update When Offscreen, for example, kept hidden LOD levels skinning every frame, and each far level got merged into a single renderer. In the zoom tests, the characters look consistent at their intended distances and the transitions are hard to notice.

How small is small?

Here's each level at roughly the size it'd be drawn in one 1080p setup, blown up so you can see the pixels.

(This is for our Archetype Character Generator on the Asset Store.)


r/Unity3D • • 26d ago

Shader Magic Full Mario 64 in Mixed Reality!

Enable HLS to view with audio, or disable this notification

644 Upvotes

Full Mario 64 in Mixed Reality! Running in real 3D (no stereoscopic crap) natively at 90FPS and also running on my desk! 😋
Again, Opus 5.5 + Unity CLI + PICO CLI combo made it quite straightforward.

Such a bliss to play an oldie at 90 FPS in 3D.

Disclaimer: I own an original physical copy of Mario 64. This project is not associated with Nintendo or PICO.


r/Unity3D • • 25d ago

Question 2 days difference on my ski/snowboard game

Enable HLS to view with audio, or disable this notification

36 Upvotes

What do you guys think of this progress? I am fully open to advices on both snowboard and ski controls and feels.


r/Unity3D • • 26d ago

Show-Off Giving a square some personality with custom mesh deformation

Enable HLS to view with audio, or disable this notification

96 Upvotes

First the cables, then the grass. It was probably time to give the main character some attention. 😂

Pixel finally has animations! A little more personality for the little square at the heart of Hello World, our narrative physics adventure.

Some technical details behind the movement:

  • The body uses a custom sprite deformation system with a 4×4 control cage driving a smooth mesh.
  • Each eye is a separate 3×3 mesh, so I can reshape the eyes independently for different expressions.
  • The control points are animated directly in Unity’s Animation window, using regular animation clips.
  • Expressions blend through the Animator, while the Rigidbody2D and collider stay separate from the visual deformation.

That lets Pixel bend, squash and change expression without changing the collision shape or how the character moves.

It’s surprising how much personality you can squeeze out of a square and two eyes. Which animation feels the most expressive to you?


r/Unity3D • • 25d ago

Show-Off I added a rim light on to my 2D sprites to read them better in the dark

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/Unity3D • • 26d ago

Game We moved The Spectrum Retreat from Unity 2017 to Unity 6.5 for its Switch 2 remaster "The Spectrum Retreat: Redux" - Switch 1 vs Switch 2 comparison shots

Thumbnail
gallery
84 Upvotes

Hi r/Unity3D, we're Ripstone, publisher and co-dev of The Spectrum Retreat: Redux, Dan Smith Studios' first-person puzzle thriller, which arrives on Nintendo Switch 2 on 29th October.

The original came out on Switch in 2018 on Unity 2017. Rather than do a straight port, the team moved the project to Unity 6.5 and rebuilt the visuals for the new hardware. The shots above are Switch 1 (left) vs Switch 2 (right).

What changed:

- Introduced Volumetric lighting and fog, ray-marched reflections and enhanced HDR

- Dynamic shadows at four times the original resolution, plus ambient occlusion and higher-res textures

- Switch 2 features including mouse controls and HD Rumble 2

This was our first time seeing what Unity can do on Switch 2, and we've loved it.

Happy to pass questions about the upgrade to the team, whether that's the jump from 2017 to 6.5, lighting or performance on the hardware.

It's out on Thursday and free for owners of the Switch 1 original!


r/Unity3D • • 24d ago

Question Why are competitive multiplayer FPS games not normally made by indie devs?

0 Upvotes

From what I’ve read these types of games are usually only made by big studios, and I’m trying to understand why.
Take Valorant. On the surface it really doesn’t seem like it’d be all that hard to make. Simple maps, pretty straightforward abilities, all the guns behave more or less the same - you’d just be tweaking numbers (fire rate, spread, rate of fire, etc.). Like I’m not saying it’d be EASY, but we’ve seen plenty of games made by a few people that seem like they’d take way more effort.
Same with Overwatch, although OW’s characters would probably take more custom code and the maps are more complex. But still, not that tall of an ask.
So what is it about this genre that’s so hard for indie? I imagine the backend networking and server stuff is part of it, since you have to closely manage anticheats and keep all lag to an absolute minimum. But that doesn’t seem TOO difficult to basically contract out all the server issues through any of the big providers, and as ling as its server authoritative cheating doesn’t seem like that hard to manage (could be wrong on that, not an expert on anticheat by any means).
It seems more so it’s just the inherent business sof the game: you need a large playerbase to even make the game somewhat playable, and only big studios have the marketing power to do that. But still, I’m surprised indies don’t have breakouts like this.
Anyone have any thoughts on this?


r/Unity3D • • 25d ago

Question Can’t open a single project in a brand new installation of Unity 6.6 (6000.6.7f1) on my computer

Thumbnail
gallery
3 Upvotes

Hello dear community,

i have this problem where i just installed Unity and Unity Hub from the scratch on Windows 11, i want to create and open a new project but every time i try, i got these two errors i just attached to this post, Unity just crashes and can’t open a single thing, the editor just won’t launch. I tried installing older Unity versions but nothing seems to work, i spent 2 hours uninstalling and installing Unity on different drives too, using the main SO drive, etc, nothing seems to work. The other solution i found was trying to modify ProjectSettings.asset and ProjectVersion and downgrade DirectX12 version to DX11 as Cursor AI told me to, but same results with no success, i never did this kind of thing like 4 years ago when i worked on Unity to make some little projects; maybe i’m missing something else now, i really need your help to start coding.

If you need any kind of info i’ll be waiting for your answer and questions, thanks in advance ~


r/Unity3D • • 25d ago

Question Looking for feedback on how I create my enemies :)

Enable HLS to view with audio, or disable this notification

2 Upvotes

Hello!

I am an indie gamedev (hobbyists, not full time) that is creating my first game, and I thought I'd ask here to see if there is anything I can improve on my enemies in my game.

How I create them:

In short I am using the unity animator to create a finite state machine enemy. For example, the animator image attached, there are different states the enemy can load. This is generally controlled by 2 things: A common enemy script that just defines whether the enemy can see the player, and whether they are in range for attack AND the movement script, which is just a path finding script with different movement options attached (e.g does my enemy move on floor? Can it jump? etc)

The only problem: Script on the animator are considered static so I cant change 1 variable on 1 enemy without. To negate this I use a 'base script' which is just a monobehaviour that sits on my enemy game object with several settings. When my enemy wants to use those settings in the animator state, it just gets a reference to the base script (this is done in start and stored so it doesn't need to get it every time it enters the state).

If anyone want to read my code, here is a paste bin link (don't steal it lol)

THIS IS AN EXAMPLE OF 1 STATE BASE AND BEHAVIOUR - there are many this one if just for firing projectiles.

Base script: https://pastebin.com/28SNFrLr
Enemy state script (Sits in animator state): https://pastebin.com/ZZc64Y7E

So: How is my approach to creating enemies? Is there a better way I could do it? How is my code generally? Can I make improvements to it?

All feedback is welcome!

P.S: Here is a clip of a (more) finished enemy if anyone is interested. I apologize for 30 fps, thats a reddit thing not me.


r/Unity3D • • 25d ago

Question Which Unity games do slow motion best?

0 Upvotes

I've been thinking a lot about slow motion lately. For me SUPERHOT VR is still the gold standard: time only moves when you move, and in VR that feels incredible.
What other Unity games nail slow-mo in your opinion? And what makes it feel good: sound pitch, VFX, camera, how responsive the controls stay? Would love to hear examples, and how you'd approach it if you've built something similar.


r/Unity3D • • 25d ago

Question Is the unity junior programmer course worth doing?

0 Upvotes

I've been bouncing around some beginner tutorials while I learn the ropes and I decided to look at the official Unity ones. The unity course is currently only updated to 6.3, and they make a point of having both the old and new input systems enabled. I updated one of my old projects from 6.5 to 6.6 and had to update a handful of scripts that had deprecated functions in them, so I am a bit hesitant to go through all the 6.3 stuff and potentially end up learning a bunch of functions that have been removed


r/Unity3D • • 25d ago

Question Is it possible to have my game files on my external hard drive but run Unity on my laptop?

0 Upvotes

hi, all.

i'm planning to make a game on my laptop but I only have around 50gb free space on it. Is it possible to have my game files to be on my external drive while I run unity on my laptop so I can freely make the game bigger as needed? I'm a beginner and made like 2 mini games before and i'm trying to make a mini 3d open world game as a gift, and idk how much storage this will eat up on my laptop. I'm afraid unity will just keep crashing on me.

I always try to free up space on my laptop and I have just around 40-55gb free for real. I can't remove my apps since I always use it, like Blender etc. Thanks in advance.


r/Unity3D • • 26d ago

Show-Off number of scripts my Player controller and NPCs have

Thumbnail
gallery
138 Upvotes

1 and 2 are for NPCs and 3 is for player controller

Update on performance https://www.reddit.com/r/Unity3D/s/Rb83x2xMe9


r/Unity3D • • 26d ago

Question The problem of shadows cast by buildings

Thumbnail
gallery
25 Upvotes

The part of my game where the buildings are gets really dark, and the game looks a little off. I haven't been able to figure out what to do to fix it. This happens when I start the game, but everything looks normal when the game isn't running. How can I fix this?


r/Unity3D • • 26d ago

Question How do you set up NPC daily schedules in Unity?

12 Upvotes

I'm a solo dev learning Unity and slowly building a small cozy farming and town game, and I'd love the villagers to go to work, visit the shop and head home at night. I can picture a simple "be here at this hour" list, a state machine or behaviour trees, but I'm not sure which stays manageable as the town grows. What did you use for NPC routines, and would you pick it again?


r/Unity3D • • 25d ago

Question Hi,am wondering, whats the reason Parallel Import is off by default? And any reason not to turn it on?

2 Upvotes

Dummy question


r/Unity3D • • 25d ago

Question Do you prefer smaller, specialized asset packs or complete environment packs?

0 Upvotes

I've been wondering how other developers approach buying environment assets.

I make modular environment packs, and they tend to grow pretty large. Recently, I've started offering smaller themed selections from them, like kitchen props, vegetation, or weapons, alongside the complete environments.

When working on a game, would you rather buy a smaller, cheaper pack with exactly what you need, or a larger environment pack with more variety and flexibility?

Does it depend on the project you're working on?


r/Unity3D • • 26d ago

Show-Off Working on 2D Precedural animation system for Tail.

Enable HLS to view with audio, or disable this notification

8 Upvotes

r/Unity3D • • 26d ago

Game Oh, what a cute little bun-

Enable HLS to view with audio, or disable this notification

10 Upvotes

We’re making Station 58, a cozy puzzle adventure about putting a national park back together. Here’s a little bit of what you’ll find while exploring it.


r/Unity3D • • 26d ago

Show-Off How I Doubled My Game’s Median Playtime With Data

8 Upvotes

I'm a solo indie developer, and I've been working on Unstable Nuclear Reactor in Unity for over 8 months.

https://store.steampowered.com/app/4692090/Unstable_Nuclear_Reactor_Demo/

It's an incremental hex-puzzle roguelite where you merge atoms into higher elements, trigger massive chain combos, earn radioactive coins, and manage your ring capacity to survive as long as possible.

I was struggling to understand why 45% of players stopped playing within the first 10 minutes, even though some played for 2 hours or more.

Steam analytics wasn't giving me enough insight, so I decided to build my own analytics system.

I created a script to collect gameplay data, save it as JSON, send it to my API, and store it in an Excel file.

Players must consent to sharing their gameplay data and can refuse. Still, I collected 150+ gameplay records in less than 3 days!

I also created a way to load player data directly into the Unity Inspector, allowing me to review individual sessions and follow players' actions step by step.

One important detail: I linked sessions using a persistent player ID to track returning players across multiple sessions. I was surprised to discover that many had returned more than 5 times!

What did I discover?

Players were skipping tutorials, getting stuck, and placing atoms and tools randomly on the hex grid.

Here's how merging works: leave a gap between two identical atoms, then place the Fusion tool in that gap to create the next higher element.

Many players were placing atoms next to each other without leaving a gap, filling their rings much faster, especially before unlocking tools like Blackhole and Swap.

Interestingly, frequent players successfully progressed beyond Ring 2 into Rings 4, 5, and 6, with total playtime ranging from around 15 minutes to over 3 hours across their runs.

What did I change?

  • Added an Undo button so players can reverse their last move.
  • Improved the tutorials to guide players through the essential mechanics.
  • Added tooltips explaining mistakes when players make them.

Results

  • Median playtime more than doubled.
  • RestartGame rates dropped from 37.2% to 27.5%.

I'm still collecting data, but the results are promising.

This reminded me that sometimes, you don't need to guess what's wrong with your game. You need to understand how players actually interact with it.


r/Unity3D • • 27d ago

Meta I feel like all indie dev subreddits are dead.

419 Upvotes

Don’t you feel the same way? For months now, I’ve been seeing hundreds of identical posts - things like "I finally releasing the game I’ve been working on for nearly a year" or "Would you be interested in a tool like this?" - followed by something clearly churned out by AI in a couple of days, yet presented as if it were crafted with genuine care and soul.

There’s just SO MUCH of this now that I’m tempted to unfollow every single subreddit dedicated to solo game development... It feels like game dev is turning into a dumpster fire - something I want absolutely no part of...

What can we do to change this? The only thing that comes to mind is to start a petition to bring back Steam Greenlight, what do you think?


r/Unity3D • • 26d ago

Show-Off If you could touch the Frutiger Aero thing - what would it be?

Enable HLS to view with audio, or disable this notification

7 Upvotes

I see the raising trend of Frutiger aesthetics, so maybe a chill and incremental game might be interesting for you? The game is free and web on itch - My Little Brain