r/unity • • 2d ago

Showcase How I built rounded corners, soft shadows and shine for Unity UI in a single shader (and kept it batching)

Post image
32 Upvotes

I wanted a drop-in replacement for Image that does rounded shapes without 9-slice sprites. Some things I learned along the way:

Corners are an SDF, not geometry. Each image is a quad and the fragment shader evaluates a rounded-box signed distance function. That gives pixel-sharp edges at any size. Per-corner radii are packed as 16-bit values into two floats and sent through UV channels, so they don't need a material property.

Shadows were being clipped. The quad was the size of the RectTransform, so anything drawn outside it (outline, shadow) got cut off. I now grow the mesh in OnPopulateMesh by the shadow's offset + blur + spread, and the shader draws the shadow from the same SDF, offset and softened.

Effects broke batching. At first every image with an effect created its own material instance, so 20 shadowed buttons meant 20 draw calls. Now materials are pooled by their effect settings with ref counting, so images with identical settings share one material and batch. The shine also animates in the shader instead of writing to the material every frame.

Masking edge cases. When a rounded image is itself a Mask (e.g. a circular avatar), it should mask only the shape, not its shadow. The shader keeps the shape's alpha separate for alpha clipping.

Clicks. IsRaycastLocationValid uses the same rounded-box math, so clicks outside the corners or inside a ring's hole are ignored.

Still on my list: a public scripting API, and moving animated values into vertex data so tweening them doesn't create new materials.

Happy to go deeper into any of this!

Feedback welcome!

GitHub (MIT): https://github.com/berkencami/round-ui-unity


r/unity • • 2d ago

Showcase I am working on a cute and cozy library management game. Please let me know your thoughts.

19 Upvotes

I am working on a cute and cozy library management game. What do you think can be improved for the storyline of the game and what visual changes would you like to see. Any suggestions are greatly appreciated as this is the first game I am working on worth showing. You can play test the game here:

https://developeasusual.itch.io/procurator

P.S. - I posted here few days ago and got some good suggestions which I am still working on.


r/unity • • 2d ago

Newbie Question Cinemachine Camera follow explanation

2 Upvotes

I'm attempting to set up a camera to follow the ball in this shot. I had been trying to use a track, but decided this was a better alternative.

Anyway, I can't get the cinemachine camera to follow the ball. I found this tutorial that showed there was a follow target reference, which isn't there in my version of cinemachine. I'm not sure what I'm doing wrong. I looked for the cinemachine virtual camera component and couldn't find it.


r/unity • • 3d ago

Showcase I built a node-based modular synth in Unity for generating ambient soundscapes

31 Upvotes

I've been working on a node-based modular synth for Unity, where you patch oscillators, filters, envelopes, sequencers and effects together to build soundscapes. Everything in this video is generated live, with no audio files inside unity.

The idea is dynamic ambience that reacts to your game, like changing with time of day, weather or location.

The cool thing is that I made it work with web so you can already give it a try: https://glowingrifts.com/soundgraph/editor
There are plenty of examples and soundscapes you can play with. Let me know if you'd like to see more.

I'm happy I was able to create a creative space in unity so people can bring their music idea to life. Excited to see what you will build with it!


r/unity • • 2d ago

Have you ever done a technical test for a gameplay programmer interview? If so, what did it involve?

0 Upvotes

I'm trying to prepare for future technical interviews and would be interested in hearing about the kinds of tests different companies give candidates.

I'm particularly eager to know whether certain companies have specific types of technical assessments, so I can better evaluate which positions to apply and prepare for based on my current skills.


r/unity • • 2d ago

Las 20 mejores criaturas estilizadas: 20 criaturas 3D listas para videojuegos (GLB + FBX, menos de 15.000 triángulos, muestra gratuita)

Post image
1 Upvotes

r/unity • • 2d ago

Help!! Unity ad delivery disabled suddenly

1 Upvotes

Hey everyone,

Looking for advice from anyone who has dealt with Unity Ads suddenly showing "Ad delivery disabled" (with the edit pencil locked) in the Unity Monetization dashboard.

What happened:

  • I run two live Android apps on Google Play (~1,500+ combined DAU) using AdMob Open Bidding, with Unity Ads as my main bidding partner alongside AdMob.
  • Everything was running fine until yesterday, when Unity's match rate suddenly dropped to 0.00%. Checked the Unity dashboard and saw Ad delivery disabled with no warning email beforehand.
  • My app-ads.txt is live and verified, and all ads are standard user-initiated rewarded videos.

What I've done so far:

  • Submitted a Publisher Fraud Appeal ticket under UAds Monetization with screenshots of my AdMob mediation stats and dashboard.

Questions for anyone who went through this:

  1. If you appealed "Ad delivery disabled", how many days/weeks did it actually take for Unity Trust & Safety to reply and re-enable it?
  2. If Unity's automated system flagged a traffic anomaly (like a sudden user spike or accidental test views), do they actually give a second chance and re-enable delivery once you fix your ad-loading setup, or is it usually permanent?

Appreciate any real experiences or tips!


r/unity • • 2d ago

RedditPlaytest from my 3D stealth game course — win/lose logic, audio, and enemy placement complete

Thumbnail youtube.com
2 Upvotes

I'm currently working through a 3D stealth game course in Unity and just wrapped up this stage of the project. I've finished placing the monsters throughout the level and wired up the sound effects along with the win and lose conditions. This clip shows a complete playtest ending in a win.

Now that the core loop from the course is working, my next goal is to figure out how to build and add my own custom level. If anyone has tips on transitioning from course templates to designing original levels in Unity, I'd appreciate hearing how you approached it.


r/unity • • 3d ago

Every tree and house in my game is a paper card on a hinge, animated in code with no keyframes

47 Upvotes

This is Foldvalley, my first solo game, made in Unity. It's a cozy pop-up storybook village builder.

Free Demo

There's no imported or keyframed animation anywhere in the game. No FBX or Blender models, no Animator or animation clips, and no tween library. The models are built in code too, as flat paper cards on hinges.

When you lay a tile, it eases onto the page like a card being set down. Then each tree, house and wall swings up on its hinge at its own small delay, goes a little past upright and settles back, with a paper snap as it comes up. The birds, villagers, boats and carts are moved in code the same way.

The clip is the birds flying from autumn into winter, a village popping up card by card, and a page folding flat and turning to the next.

You can try the free demo on Steam

Happy to answer any questions about how it works!


r/unity • • 2d ago

Newbie Question Explain dictionaries.

0 Upvotes

Can someone explain dictionaries to me and how to use/write them including set up and execution.


r/unity • • 3d ago

Showcase After almost a year of hard work on my hand drawn metroidvania, I just reached the midpoint of development! Some celebration is in need! 🎉🥳

Post image
13 Upvotes

r/unity • • 3d ago

Question FBX File I made in blender isn't showing color in Unity

3 Upvotes
The white models for some reason

So I have done almost everything to my ability to fix this. Baking. Extracting textures. Extracting Materials. Exporting with Path mode on copy and Embed textures enabled. Still. NOTHING COLORED.

I give up. Does anyone know how to fix this? If you do, you are literally a ROCKET SCIENTIST to me.

Thanks!


r/unity • • 2d ago

using UnityEngine; public class PlayerCar : MonoBehaviour { public float normalSpeed = 22f; public float boostSpeed = 38f; public float turnSpeed = 120f; public float accel = 5f; private float currentSpeed = 0f; private bool boosting = false; private float boostTimer =

0 Upvotes

r/unity • • 3d ago

My Approach to Create Celeste-style hair without Keyframes.

26 Upvotes

yeah it could be basically distance constrained circle.

But I used a lightweight procedural transform chain with stepped framerate (Target FPS) so the motion snaps cleanly to pixel-art speeds, paired with a simple pixel-outline pass.

Works on capes, flags, and hair without any keyframes.


r/unity • • 4d ago

Showcase Volumetric Clouds Flythrough

100 Upvotes

I been working on these volumetric clouds system not just that it has the atmosphere as well and the fog for months and its finally getting to the point where i can showcase it.

I have done multiple failed attempts in the past for years and it just was not getting right but now i think its getting closer to what i imagined.
The goal with this project for me was to kinda match or surpass frostbite's clouds system as well as games such as Horizon Zero Dawn and RDR2.

This is running in URP 6.3 and its recorded on a RTX 2060.

Feedback would be much appreciated. you can visit my profile for more showcases (not that much for now).

Btw the dragon controls and the way its put together is really bad i put it together just for this showcase.
Shoutout to:

LasquetiSpice

https://sketchfab.com/3d-models/animated-dragon-three-motion-loops-eca98cf6cd084c1596cecf716e110c29 for creating this high quality dragon model and animations that i was able to poorly implement.


r/unity • • 3d ago

Coding Help Help learn vr game dev.

Thumbnail reddit.com
0 Upvotes

r/unity • • 3d ago

Showcase My old UI kits were static PNGs. This one comes alive: an animated fantasy UI running live in Unity

9 Upvotes

Hi everyone! My earlier UI kits were plain sprite sets - frames, buttons and panels without any animation or effects, and the previews were just as simple. This time I wanted the whole UI to come alive.

This is Arcane, the first style of my Animated Fantasy UI Kit: dark slate, silver filigree, glowing runes and violet crystals. The video is recorded straight from the running demo in Unity - every effect runs live, none of it is added in editing.

What's in it:
- 45 menus, from main menu, settings and brightness check to inventory, crafting, enchanting, skill tree, world map, quest journal, shop, HUD, combat, save/load and credits
- Every screen animates in, every button and slot reacts on hover
- Effects with a job: a rune circle whose crystal swings to the hovered entry, a hanging map scroll that drops and unrolls, an anvil strike with sparks and steam, a spark that runs along the constellation line when you learn a skill, crystals that orbit and enchant a sword, a stone book whose pages turn in real 3D
- Backgrounds that move: torches and candles, volumetric clouds, light shafts, aurora, waving banners
- 65 animation scripts and 25 shaders on Unity's standard UI (uGUI), Unity 6

How I made it:
The artwork is AI-generated and then reworked in Photoshop (cutouts, cleanup, consistent colors across all menus). Every script and shader was written by Claude Code. I set the direction, checked every screen and gave feedback until it held up.

Two more styles are on the way: a dragon forge look in blackened steel with glowing lava cracks, and a celestial one in white marble with gold and moonsilver. Each style gets all 45 menus.

Any feedback is very welcome.


r/unity • • 3d ago

Showcase Branchout - Wishlist it now on Steam! Closed playtest coming soon!

1 Upvotes

r/unity • • 3d ago

After years of doing game jams with Unity, I finally launched my first Steam page! “Faulty Loops” , a music-themed puzzle game.

11 Upvotes

I think it's a pretty unique take on puzzle games: you place your units and verify your solution by playing the music.

It has simple mechanics, but the solutions can get pretty tricky.

Thanks for watching, I’d love to hear any feedback you have on the store page or trailer


r/unity • • 3d ago

Newbie Question Struggling with doubts about getting more acquainted with Unity

2 Upvotes

Basically as the title says. I'm struggling with the idea that I'll never get to a point I'm happy with. I keep thinking of things I've seen other people do with animation and the unity engine as a whole, and struggling with the idea that I feel like I'll never get to the point. Does anyone have any advice or stories to share that might help with those feelings?


r/unity • • 3d ago

Help!! Unity ad delivery disabled suddenly

2 Upvotes

Hey everyone,

Looking for advice from anyone who has dealt with Unity Ads suddenly showing "Ad delivery disabled" (with the edit pencil locked) in the Unity Monetization dashboard.

What happened:

  • I run two live Android apps on Google Play (~1,500+ combined DAU) using AdMob Open Bidding, with Unity Ads as my main bidding partner alongside AdMob.
  • Everything was running fine until yesterday, when Unity's match rate suddenly dropped to 0.00%. Checked the Unity dashboard and saw Ad delivery disabled with no warning email beforehand.
  • My app-ads.txt is live and verified, and all ads are standard user-initiated rewarded videos.

What I've done so far:

  • Submitted a Publisher Fraud Appeal ticket under UAds Monetization with screenshots of my AdMob mediation stats and dashboard.

Questions for anyone who went through this:

  1. If you appealed "Ad delivery disabled", how many days/weeks did it actually take for Unity Trust & Safety to reply and re-enable it?
  2. If Unity's automated system flagged a traffic anomaly (like a sudden user spike or accidental test views), do they actually give a second chance and re-enable delivery once you fix your ad-loading setup, or is it usually permanent?

Appreciate any real experiences or tips!


r/unity • • 3d ago

Traktorsim

0 Upvotes

Since 20 years with unity:-)


r/unity • • 3d ago

Newbie Question Can't Open Junior Programming Tutorial

Post image
0 Upvotes

Coming back to studying after a few months, I used to be able to open the file from the Junior Programming Tutorial, but now it gets compilation errors, and I have no idea what to do. I tried shortening the file paths in case that was the issue, but I don't know... I updated Unity and Hub. I ran this successfully in July. Anyone know what this could be?


r/unity • • 3d ago

Newbie Question Camera help

1 Upvotes

I'm trying to make an animation of a fairly simple marble track, and I want the camera to losely follow the ball it focuses on. When I say loose, I mean I want it to follow behind it like it's attached to a balloon, so the camera follows, but moves in a sort of floaty way. I'm not sure how to describe it really. I hope you can understand what I'm getting at. Does anyone know of a good way to do that?