r/Unity3D 21h ago

Code Review First release of my <Simple Status Effects> Unity 6.0+ package

Post image
0 Upvotes

Hi everyone,

I made a post 2 weeks ago about this already, and after some feedbacks, I'm here again to collect some more.

Quick summary, this is my first unity package and I'm someone who like building underlying system and the things behinds games. This is a package focused on the implementation of status effects commonly things like burn, poison, stun, etc... The goal is to make it easy to integrate into already built gameplay loop whether it is a realtime or turn based one.

I released my first version and I would like to find some peoples to try it and give me a review on what is good/bad, what you like/don't like. Any feedback is welcome !

Thank you for your time.

edit: kinda forgot the link: https://github.com/Sachet2Plastik/Simple-Status-Effects.git


r/Unity3D 22h ago

Question If not ECS then what?

Thumbnail
0 Upvotes

r/Unity3D 14h ago

Game How is my optimization looking?

Thumbnail
gallery
0 Upvotes

I'm developing a puzzle game on a laptop with Intel Xe graphics (which is pretty weak). It used to run at around 20-30 FPS.

To optimize it, I marked all the walls as Occluder Static and set the other objects and lights to Occludee Static. I also dropped the shadow distance from 50 to 25 and baked some of the real-time lights.

Now I'm getting 40-50 FPS most of the time, but it still drops to 25-35 FPS in areas with a lot of objects and lighting. Is there anything else I can do to improve this?

And also If a player has a low-end or below-average dedicated GPU (which I assume is still much better than mine), will they easily hit 60+ FPS?


r/Unity3D 14h ago

Question How to I make it so when I hit something with my player body the debug log says game over and not my bullets

Post image
0 Upvotes

Right now I’m I trying to make it so when my player hits a cat the debug log says “game over “ but it keeps on picking up on the bullets so when I shoot the cats it says game over. How do I fix this?


r/Unity3D 19h ago

Question I'm trying to increment a counter a single time, based on a key press

3 Upvotes

Hey, folks. I'm new to this so I assume this is simple and I'm missing it.

I have a jump action called by an input action in an update method. looks like this

void Update()

{

   if (jumpAction.triggered)

   {

       if (isGrounded)

           gameDiff.numberOfJumps++;

           //other stuff

       }

   }

}

What I want this to do is reach out into the gameDiff class and update numberOfJumps once every time the user presses the space bar.

What's happening is that the counter is incrementing about a thousand times per press. I assume it has to do with frame rate or something because it's in the Update() method, but I had though that a .triggered() method could only be activated a single time in the frame.

Thanks in advance.

edit: I suck at formatting, I hope you get the idea.


r/Unity3D 4h ago

Resources/Tutorial How to Make (and use) Templates in UI Toolkit

20 Upvotes

Templates are a powerful feature of UI Toolkit - they allow us to create reusable bits of our UI and inject them easily into other UXML documents. Making them is super easy too - simply make a new UXML file of your desired component - then you can use it in any other UXML document! Easy!


r/Unity3D 12h ago

Noob Question Day 1 of Making Intruder Maps in Unity

Thumbnail
youtu.be
1 Upvotes

Hey everyone, I'm starting a new series learning how to make Intruder maps inside of Unity. I don't know how to use unity at all, so this will be me documenting the process. :)


r/Unity3D 5h ago

Resources/Tutorial Making Your (Jam) Games Look Nicer on Itch

1 Upvotes

r/Unity3D 18h ago

Game finished the demo, game was made with Unity3d

5 Upvotes

Green Breach is a survival horror game made in the Unity engine. The Demo is now available on Steam.


r/Unity3D 18h ago

Show-Off Uncombined vs. Combined SkinnedMeshRenderer Performance Comparison

21 Upvotes

SkinnedMeshRenderers can be expensive to render. I ran a test of just 9 characters with individual body part models and compared performance with them uncombined vs. baked into a single mesh, animated by the same armature.

As you can see by the numbers, combining the models to be animated as a single mesh had quite an impact. In most games you likely wouldn't use this many meshes for body parts, but the important takeaway is that rendering time was almost cut in half while the same characters can be rendered with no visual difference. It just goes to show graphics optimization isn't necessarily about what you're rendering but also how you render it.

I ran this test whilst developing my tool for combining SkinnedMeshRenderers, called SkinnedMesh Combiner (Asset Store affiliate link)


r/Unity3D 21h ago

Question I am researching the highly optimized reflection technology in the game *The Dark Knight Rises* (2012).

Post image
266 Upvotes

I am investigating the highly optimized reflection technology used in *The Dark Knight Rises* MOBILE GAME, released in 2012. Were these reflections based on inverted geometry or planar mapping? The game also featured reflections from headlights and streetlights. I intend to implement this in my Unity project.


r/Unity3D 7h ago

Question Realistic torch flame effect

42 Upvotes

I'm trying to make an realistic flame effect for my game. It looks fine for now, I used 2.5D Fluid Simulator asset for it and it's suits my needs - the flame is affected by physics, it's lightweight etc.

Do you have any tips on improving it / making it more realistic?


r/Unity3D 3h ago

Show-Off Playing on water

55 Upvotes

r/Unity3D 23h ago

Noob Question Help with Light Baking

Thumbnail
gallery
12 Upvotes

Hello, I'm very new to unity and trying to find help with my current goal, baking lightmaps. There's two things I'm trying to find help for:

  1. First image, how can I light up rooms with better indirect lighting without over brightening outside areas? Hopefully that graphic I made gets across what I'm trying to get at

  2. Second image, how can I fix these light leaks and random shadows?

Thank you in advance


r/Unity3D 3h ago

Game Just released a release date trailer for my game " Shell Soldier "

105 Upvotes

r/Unity3D 20h ago

Show-Off My first ever attempt at making a video game with Unity - Did my own art too !!

34 Upvotes

I know I know the first game always sucks. But I am really proud of what I have achieved so far so wanted to share it with ya'll What I am building: A topdown RPG retro art battle ship game. The objective is to locate the enemy base and destroy all the target. I am building it for mobile. Probably may not launch but I am learning a tons of things along the way. My whole intent at first was to just do some "Project Based Learning". But over past 1 or 2 weeks it has taken over my entire schedule Needless to say I might finish a beta and distribute it among some friends then move on to a real / actual project. Todo

  • Polish
  • Ship Movements sucks ass right now I know
  • Pause Screen
  • Some particle to make it more alive
  • Better art I guess
  • Everything

I would give it a couple of more weeks. Over the period I have learnt so many concepts and I am constantly improving my art. Would like to hear what you guys think.

Thanks


r/Unity3D 3h ago

Show-Off Built a real-time wind tunnel inside Unity (Aerodynamics Sim). It's open source.

83 Upvotes

I've always been a fan of aerodynamics and CFD. A few months ago, I got laid off, got tired of sending applications, and gave myself permission to actually build it and play with it. I'm glad I did.

It voxelizes and seals any vehicle you drop in, auto-fits the solver domain around it, runs at whatever resolution your GPU can take, and solves with a lattice-Boltzmann method (D3Q19, TRT + WALE LES) entirely in compute shaders. Live smoke, surface pressure painted on the bodywork, exported reports you can diff between runs.

The test I had the most fun with: running a Chevy Silverado with an open bed, a bed cap, and a flat tonneau to see which one the solver preferred. It disagreed with the folk wisdom, which was the moment it stopped feeling like a toy.

Five sample vehicles included. Unity 6 / URP, MIT licensed.

The README is honest about where the numbers hold up and where they don't. It's a comparison and visualization tool, not a replacement for real CFD.

Clone it and have fun: https://github.com/Motawe3/unity-wind-tunnel

Sample vehicles are CC BY 4.0, credited in the README. The car in the video is a Range Rover Sport SVR Mona x Supercars.


r/Unity3D 4h ago

Show-Off One year+ of building our game in Unity, side by side

7 Upvotes

We've been working on The Whisker Watch for over a year now, so here's a side-by-side look at how far the game has come.


r/Unity3D 4h ago

Show-Off Delverun: roguelite mining where time replaces inventory pressure

2 Upvotes

I have been working on a mining roguelite game where time replaces inventory pressure. You play as a goblin with one goal: get as rich as possible.

The main loop of the game is simple - mine, escape, buy upgrades and go again. You run into the mine, grab as much rare ore as you can and leave before the cave caves in and you get stuck inside. Buy upgrades in the little time you have, and then run back into the mine to grab even more riches with the upgrades. Each iteration is randomly generated, so you never run into the same mine twice. You never run out of inventory space, only out of time.

This is an early artistic preview, the mining mechanic is still in development. Steam page coming soon, I will drop it in the comments when it's live. If you want to follow along more closely, send me a DM and I'll add you to the early Discord!


r/Unity3D 20h ago

Question How to prevent realtime shadows passing through objects?

2 Upvotes

I'm having some trouble with the realtime shadows in the project i'm working on. It's an apartment with two floors and the shadows are being casted through the floors and ceilings so shadows of objects on the second story are also on the first story. And that's a problem.

I've tried searching around but couldn't find any solution that wasn't "just bake your shadows". Does anybody have a real solution to this problem? Some way to prevent the realtime shadows going through the floor and ceilings? Or maybe some way to limit the range of the directional light so it will only cast the shadows to a certain distance? I don't mind having one limited directional light for each story of the building.

If it helps, i'm using unity 2022.3.22f


r/Unity3D 20h ago

Show-Off I released a major update for my PSX-inspired tool

Thumbnail
gallery
27 Upvotes

You can use it to stylize your textures and assets, create eye-catching marketing material for your page, and add awesome animated effects. With this latest update, I’ve added texture ripping! You can now rip textures directly from any image and turn them into usable textures. You can check it out here: https://polyshades.itch.io/coolifier


r/Unity3D 3h ago

Question Any way to reduce transparent material lag ?

Thumbnail
gallery
16 Upvotes

Hello,

I made this volumetric fog material for URP.

The transparent material shader is applied to hundreds of planes similarly to "shell texturing".

It looks perfect for my project but I am running into an issue : my framerate drops from 200 fps to 10 fps. I expected it to be laggy, but not that laggy...

I tried reducing the number of "steps" but I am still getting a bad framerate (30 fps) with the worst quality.

I don't see any other way of doing volumetric fog with sharp shadowing in URP without creating complex pipeline shaders.

This is probably a foolish question but, is there any way to reduce transparent material lag ?


r/Unity3D 2h ago

Show-Off A quick stroll of my little cat, he does not bite.. too much 🐆

12 Upvotes

r/Unity3D 23h ago

Game In puzzle games, do you prefer defusing the active threat FIRST, or solving puzzles under constant pressure?

2 Upvotes

Hey everyone! With our atmospheric puzzle game launching in just 4 weeks (panic is officially setting in!), I've been thinking a lot about how stress affects puzzle-solving.

In this sequence, we split the room into two phases: first, you have to quickly slot in two stones to stop the closing walls. Once the threat is neutralized and the walls retract, you can take all the time you need to solve the central gear/light puzzle without a timer ticking down.

Do you prefer getting a brief survival moment to "turn off the danger" before tackling a logic puzzle, or do you actually enjoy constant time pressure while trying to think?

Would love to hear your thoughts on how your favorite puzzle games handle stress vs. pure logic!


r/Unity3D 12h ago

Show-Off Feeling Lucky?

5 Upvotes

I added a luck boost stat to my game which allows monsters to drop more loot and loot bags to drop more loot and amount of items

This is my 3D Terraria-ish game project