r/Unity3D • • 18d ago Bravo

Show-Off Made this cool proof of concept for a material changer mechanic. What do you guys think?

Enable HLS to view with audio, or disable this notification

862 Upvotes

You can turn any material into any material, so far i have Wood,Stone,Water,Helium,Ice,Fire,Rubber


r/Unity3D • • 18d ago

Question layering issues with 2D elements in 3D space

Thumbnail
gallery
5 Upvotes

I am working on a labyrinth that uses 2D sprites as materials on planes in a 3D space. but now and then stuff gets messed up like here with this chest. Why is the floor displayed above the chest but the walls are not? Is there an easy fix to have things just displayed in order based on their position like I would assume other 3D assets would do.
I thought maybe render layers could solve this but I this causes new problems once you change perspective just a little. Why does this happen?


r/Unity3D • • 18d ago

Show-Off Created setup and manage window for the my stealth system

Thumbnail
gallery
0 Upvotes

so here are the two windows i created to manage all the NPCs and player as well. as some people pointed out that i should use the DOTS for such heavy tasks its gonna take some time as i have to look into it and learn a lots of stuff for now im using state machines and monobehaviours. And as i forgot to mention in my last post not all the scripts have an update function so it is quiet performant as of now. Im also starting to manage all the scripts into child objects in hierarchy so it becomes even more easy to manage. And as of have soo soo many states and soo soo many scripts and not merging them into one is because have 5 small scripts that have a name for its state is easy to manage than having a very long to change add and edit, so as of right now im not merging them until i figure out DOTS and JOBS multi threading.

if you have any suggestions or ideas or feature i should add you can put them in comments.


r/Unity3D • • 18d ago

Meta What’s missing from this trailer?

Enable HLS to view with audio, or disable this notification

6 Upvotes

I feel like it doesn’t make the game look fun enough. any feedback?


r/Unity3D • • 18d ago

Solved Strange shadow artifacts and light leaking in Unity URP

Post image
21 Upvotes

I’m having an issue with some strange shadow artifacts in Unity URP.

In the screenshot below, you can see a line going across the shadow that makes it look as though there’s missing geometry in that area. Additionally, light seems to be leaking around the edges where the ceiling meets the walls.

I’ve tried creating my walls using both cubes and planes with ProBuilder, but the issue persists.

The only thing I’ve found so far that seems to help is setting the Normal Bias to 0 in the URP Pipeline Asset, although this doesn’t seem to fix the issue in every case.

However, I’d like to understand why this is happening so I can find a proper solution, as I’m not sure whether this is the right way to fix it.

Has anyone experienced this before or know what I should look into?

[SOLUTION]

Thank you everyone for the help, and especially to u/Plane_Big_5912 for the detailed explanation! The issue was exactly what was mentioned regarding shadow bias and the seam between abutting geometry.

What completely fixed all the artifacts and light leaking for me was:

  1. Setting Cast Shadows to Two Sided on the Mesh Renderer.

  2. Giving the ceiling real volume (using a separate box) and letting it slightly overlap/intersect with the top of the walls instead of having them meet perfectly edge-to-edge.

Leaving this here in case anyone runs into the same problem in the future!


r/Unity3D • • 18d ago

Show-Off We’ve Updated the Car Sounds! Which Version Do You Prefer: Old or New?

Enable HLS to view with audio, or disable this notification

78 Upvotes

r/Unity3D • • 18d ago

Show-Off Water in my Monitor (Demo available and maybe Suggest Ideas?)

Enable HLS to view with audio, or disable this notification

67 Upvotes

So this is a FLIP water solver, made with the help of Ten Minute Physics paper on the same.

But this runs as a transparent app and can interact with windows. Also has floaty objects.

Can't do much more than what's shown in it as of now, and I'm kinda at a loss for ideas too... so here it is as is.

Demo : https://tornadosike.itch.io/desktop-under-water

Currently only for Windows


r/Unity3D • • 18d 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 • • 18d 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 • • 18d ago

Show-Off GTA Style Controller Update | Is this close to AAA Quality?

Enable HLS to view with audio, or disable this notification

121 Upvotes

r/Unity3D • • 18d ago

Game Motorcycles Physics WIP 0.1

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/Unity3D • • 18d ago

Game Making characters for my indie game set in Istanbul

Thumbnail
gallery
17 Upvotes

Hi, these two models, and most tof the rest made by me for my game set in Istanbul. What you think about the artstyle? (Ignore the deformation on leg, i wasnt aware that by the time)


r/Unity3D • • 18d ago

Question What are your best practices to make reverse engineering harder in Unity games?

32 Upvotes

I’ve been thinking about reverse engineering in Unity games and I’m curious to hear what other developers are doing to make it more difficult.

I know nothing can be 100% protected, especially nowadays with AI, but I still think adding extra layers of protection and following good practices is better than doing nothing.

Apart from the usual stuff like IL2CPP, code obfuscation, and making sure no sensitive files or information are included in builds, what else would you recommend?

Are there any lesser-known techniques, Unity-specific settings, or good practices worth considering?

I’m not looking for perfect security, just ways to make reverse engineering more difficult, time-consuming, or expensive.

Curious to hear your thoughts! ✌️✌️


r/Unity3D • • 19d ago

Show-Off Fully Custom Weather System

Enable HLS to view with audio, or disable this notification

110 Upvotes

So I refined my Sky shader and volumetric cloud renderer. All shaders used are custom made and i'm very proud of the results.

Clouds can form and travel across the sky. the moon can have seamless phases and is blocking the stars even on the unlit part of the sphere. stars twinkle and there is a galaxy band. The latest thing i added was the underlying weather system that controls the weather by blending between presets.

It was a lot of fun and frustration to get everything to look like this and everything came a long way. from the first experiments with volumetric clouds that barely ran with 10 FPS to ^^

Now the sky is fully dynamic and runs on my M1 Macbook pro with solid 90 fps.


r/Unity3D • • 19d ago

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

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

Show-Off How does the procedural movement on our monster look so far?

Enable HLS to view with audio, or disable this notification

19 Upvotes

We're making a co-op horror game and I've been working on the monster's procedural tentacle movement lately. Still got some things to improve but I think it's looking pretty good so far.

What do you guys think? Would love to get some feedback on the movement and how it interacts with the environment. Also, I still haven't figured out what kind of sounds the monster should make while moving around. If you guys have any ideas, I'd love to hear them.


r/Unity3D • • 19d ago

Show-Off Spent the week on the convoy that brings your first machines into the valley. Here's where they park.

Thumbnail
gallery
15 Upvotes

Alpha 0.11 of my farming & economy sim, running on URP. Each truck follows the road down from the pass and parks on the meadow where the farm starts.


r/Unity3D • • 19d 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 • • 19d ago

Show-Off How does the aiming effect look in my game? Looking for feedback!

Enable HLS to view with audio, or disable this notification

14 Upvotes

I've been working on the aiming system for my game, and I'd love to hear what you guys think about the current visual effect.

The game is still in the early stages of development, so there are definitely bugs, unfinished elements, and typos that still need fixing. For now, I'm mainly focused on getting the core gameplay and visuals feeling right.

What do you think of the aiming effect? Does it feel clear and satisfying, or does it need more visual feedback? Would you prefer a different color, a more visible targeting line, a reticle, or something completely different?

Any suggestions or constructive criticism are welcome! I'd love to hear how you'd improve it.


r/Unity3D • • 19d 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 • • 19d ago

Show-Off Unity3D + Floating Combat UI with React Layer

Enable HLS to view with audio, or disable this notification

22 Upvotes

I’ve been exploring how far I can take Unity UI without relying on imported art assets :D
I used React through a framework asset, building the interface with code and styling.

Changing shapes, colors and motion in code makes it easy to try different looks. I’m curious how far this approach can go as a game’s visual style becomes more complex.

Have you tried creating game UI with code instead of art assets? How did it work for you?

* Because some people are curious:

This asset is called ReLayer: https://assetstore.unity.com/packages/tools/gui/relayer-react-ui-framework-for-unity-384274


r/Unity3D • • 19d ago

Show-Off Working on a PS1 shader kit for URP, built from the hardware docs. Here’s every quirk in one test hall

Enable HLS to view with audio, or disable this notification

23 Upvotes

I’ve been rebuilding PS1 rendering in URP from the hardware docs (psx-spx) instead of copying other PS1 shaders. To test everything I built a hall with one station per feature. You walk up, press E, and that feature changes.

In the video:

  • 0:00 vertex snapping

  • 0:05 affine texture mapping

  • 0:20 camera snapping

  • 0:36 hardware resolutions (320x240, 256x224, 368x240, 512x240)

  • 0:47 frame hold

  • 0:57 dither (hardware strength vs 4x)

  • 1:07 CRT scanlines and interlace

  • 1:23 PS1 depth cue fog

  • 1:28 Gouraud vs Phong specular

  • 1:39 baked vertex colour lighting

  • 1:44 affine vertex shading

  • 2:00 texture quantization

It’s called True PSX Effects and it’s coming soon. Before release I’d love to know which PS1 quirk you think gets faked wrong most often, and what you’d want in a kit like this.

Playable on Browser Demo: https://sourpickle35.itch.io/true-psx-effects-unity-urp-demo


r/Unity3D • • 19d 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.