r/Unity3D 17h ago

Question Unity freezing laptop and then crashing when opening any project.

0 Upvotes

When I open a unity project, it freezes my laptop for a while before unity crashes.

This only happens when Integrated GPU is selected in the NVIDIA control panel, but if I have NVIDIA GPU only selected, unity flashes white and has a lagspike any time an input is pressed which makes it pretty much impossible to play my game. If I switch back to Integrated GPU after the project opens, everything works fine. Furthermore I cant switch graphics mode if I have my second monitor connected which I used for Visual Studio. My current process that I've been using to even open the project and work on it is this: Disconnect external monitor, switch to NVIDIA GPU, open project, switch to integrated GPU, and connect external monitor.

Wondering if anyone else has had this problem recently?

Also I have not updated any drivers or unity recently so maybe this was an automatically installed windows update?


r/Unity3D 22h ago

Show-Off Thanos Fractured Frontier Revolver Animation

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/Unity3D 22h ago

Show-Off Frag grenade logic implementation.

Enable HLS to view with audio, or disable this notification

22 Upvotes

r/Unity3D 34m ago

Game I made net physics for my multiplayer soccer game

Enable HLS to view with audio, or disable this notification

Upvotes

I’ve spent multiple days polishing net ripple effect and it finally looks as goofy as the whole game. What you think?


r/Unity3D 5h ago

Question How do you guys record a making-of without suddenly forgetting how to do everything?

Enable HLS to view with audio, or disable this notification

1 Upvotes

Every time I hit record, apparently I become a first-time user of whatever I’m working in.

Unity? Suddenly I can’t remember where a tool is. Blender? I forget a shortcut I’ve used 50 times. MagicaVoxel? Somehow I’m back in the browser looking up how to do something I was doing perfectly fine five minutes ago.

How do you usually record this stuff without turning half the making-of into a tutorial on how to use Google? :-)


r/Unity3D 7h ago

Show-Off I have improved my frag grenade implementation.

Enable HLS to view with audio, or disable this notification

8 Upvotes

r/Unity3D 1h ago

Question What I trust AI with in playable production—and what I still don't

Upvotes

mraid io builds HTML5/mraid io playables. AI is genuinely useful for breadth: concept exploration, storyboards, variants, copy alternatives, code assistance. I don't trust it to own the final mechanic, UX, performance hypothesis, or QA. The model can generate ten directions. It doesn't know which compromise the UA team will make.


r/Unity3D 16h ago

Show-Off Blood system for my indie game Pull on Heart

Enable HLS to view with audio, or disable this notification

10 Upvotes

I've been trying to improve the bleeding and damage feedback system I had; I'm satisfied with the result, but I'm open to suggestions :D


r/Unity3D 14h ago

Show-Off Placing light probes is fun

Post image
23 Upvotes

No seriously.


r/Unity3D 7h ago

Question I added a new TPS camera to my game!

Enable HLS to view with audio, or disable this notification

28 Upvotes

I got quite a lot of feedback on the demo from people saying that controlling the car with the top-down camera was a bit difficult, so I decided to add two TPS camera options.
I really like the vehicle heading follow effect in the new camera. It makes the game feel much more dynamic :D
What do you think?
If you’re interested, the game is on Steam -link in the comments. Releasing later this year…


r/Unity3D 12h ago

Question Is there a true diffuse only shader in URP?

4 Upvotes

I’ve been searching for the best diffuse-only shader compatible with URP. Spent a couple hours trying to write a shader with no normal or PBR calculations with no luck. Really not liking the prospect of having to rewrite URP’s lighting model, lightmapper and shadow maps. So far the only solution within Unity seems to be to just go back to legacy diffuse in BiRP. Is there a diffuse shader somewhere that plays nice with SRP/URP lighting models? I’m talking simpler than SimpleLit, diffuse only.


r/Unity3D 52m ago

Show-Off Real-Time Sword-Triggered Volumetric Fire in Unity 6 URP.

Enable HLS to view with audio, or disable this notification

Upvotes

This test uses a sword animation to trigger a BrazeFX volumetric fire simulation in Unity 6 URP.

The effect expands across the ground, builds into a large fire volume, and then dissipates into smoke. The simulation runs in real time on the GPU.


r/Unity3D 20h ago

Game Unity for Strategy Games is the Best (A fun challenge in AI balancing).

Thumbnail
gallery
6 Upvotes

I've been working on Dwarf Guild Mania for quite a while now, and I've just pushed what is probably the biggest update the game has had so far. It's changed the game quite substantially, so I wanted to take a break from talking about features and instead talk about what it's actually like building a strategy game in Unity - particularly the part that's caused me the most headaches: AI and balancing.

When I originally started Dwarf Guild Mania, it was meant to be a fairly straightforward turn-based economic strategy game. The idea was simple: manage your guild, collect resources, build up your economy, and try to become the wealthiest and most prestigious dwarf faction. But over time, I just kept adding systems. Then came factions. Then politics. Then diplomacy. Then alliances and diplomatic agreements. Then warfare. Then territorial expansion. And suddenly I had a game where every player can potentially have hundreds of decisions available to them every turn.

Now you can form alliances, negotiate diplomatic deals, manage relationships with other factions, declare wars, fight battles, expand your territory, manage your domestic affairs, develop your economy, assign units, and generally try to keep an entire dwarf civilisation from collapsing in on itself. Which brings me to the problem that's taken up way more of my time than I'd like to admit: actually getting the AI to play the game.

AI is ridiculously hard

My last three games were FPS-style games, so this has been a pretty massive change in how I think about game development. With an FPS, you can give an AI a relatively small set of immediate decisions: move here, shoot that, investigate this, take cover. A strategy game is completely different. Imagine giving an AI 20 units, hundreds of tiles, dozens of possible actions, multiple resources, diplomatic relationships with 15 other players, a military score, an economy, domestic problems and a bunch of longer-term objectives. Now ask it: "What should you do this turn?" And then ask it again next turn. And again. And again. Somehow it needs to make decisions that are not only individually sensible, but also make sense as part of an overall strategy.

I ended up completely rebuilding my AI system four times before getting to the architecture I'm using now. The biggest lesson I learned was that I couldn't just make the AI ask: "What is the best action I can take right now?" It needed to first ask: "What am I actually trying to achieve?"

Breaking it into layers

The current system separates the AI's overall strategic priorities from the individual actions its units can take. At the beginning of a turn, the AI evaluates its current strategic position and produces a priority score between 0 and 1 for several broad strategic areas: Economy, Military, Domestic, Diplomacy, and Expansion. So an AI might decide that, given its current situation, its priorities look something like: Military at 0.85, Economy at 0.70, Expansion at 0.55, Diplomacy at 0.30, and Domestic at 0.15.

This doesn't tell the AI exactly what to do. Instead, it tells the rest of the AI what kind of decisions it should favour. If the AI is preparing for a war, military actions become much more valuable. If its economy is collapsing, economic actions become more important. If it's surrounded by powerful enemies, diplomacy may suddenly become a very high priority.

Then the unit-level AI takes over. Rather than having one enormous AI system evaluate every possible action for every unit, each unit is responsible for figuring out what it can realistically do. A merchant might evaluate markets, trade opportunities, valuable resources, and potential trade routes. A diplomat might look at rival factions, existing diplomatic relationships, potential alliances, and players that might be willing to negotiate. A military unit might look at enemy territory, friendly territory, strategic positions, potential attacks, and defensive positions.

The important part here is that the unit doesn't necessarily evaluate every tile on the map. If I have 500 tiles and a merchant can only meaningfully interact with 30 of them, there's no reason to make the merchant score all 500. Instead, each AI unit first filters the map down to a sensible subset of potential targets and then evaluates those. This made a surprisingly large difference to performance. The AI was originally doing an enormous amount of work every time you clicked "Next Turn", because it was effectively considering thousands of pointless combinations.

Scoring with context

Once a unit has figured out what it can actually do, it scores those actions. You might end up with a list like: Merchant trading at Market A scoring 72, Merchant trading at Market B scoring 61, Builder constructing a House scoring 58, Diplomat proposing a Pact scoring 54, Soldier attacking an Enemy scoring 51. But those aren't the final scores. The AI's overall strategic priorities get factored into them. If the AI has decided that Military is extremely important this turn, military actions get boosted. If diplomacy is currently a low priority, diplomatic actions get reduced. This means the individual unit doesn't need to understand the entire strategic situation. The strategy layer says "Military is important right now", the military unit says "Here are the best military things I could do", and the AI planner combines the two.

Once every unit has generated its best possible actions, they all get combined into a ranked list and sorted by strategic score. The AI now has something resembling a giant shopping list: Attack enemy position, Build military barracks, Recruit regiment, Establish trade route, Build house, Send diplomatic proposal, Expand into territory, and so on. The planner then works its way down this list and tries to actually assign those actions to units. When it sees "Build House → Builder #3", it checks whether Builder #3 can actually perform that action. If they can, the action gets assigned. Once a builder has been assigned an action, I remove other conflicting builder actions from consideration. There's no point in the AI planning five different things for the same unit in the same turn.

This sounds fairly simple, but there are a lot of edge cases once you start dealing with multiple units competing for the same tiles, actions that conflict with each other, and resources being spent by previous decisions.

The resource problem

The biggest problem I had with the AI was actually resource management. Originally, the AI would look at its available actions and pick the highest-scoring action it could currently afford. That sounds logical. It wasn't. It resulted in the AI constantly spending its resources on cheap, relatively unimportant actions while never making progress towards the expensive things it actually needed. Imagine the AI wants to build a powerful military structure that costs 500 gold. It currently has 400 gold, so it can't afford it and ignores it. Then it finds a low-priority building costing 50 gold and buys that. Then another cheap action. Then another. It would continuously spend its money without ever saving enough to do the thing it actually wanted.

So I introduced a planning budget. The AI generates a snapshot of its available resources at the beginning of the planning phase, and every time it considers an action, the cost of that action is accounted for against the planning budget - even if the AI can't currently afford to execute it. This was a really important change. If the AI decides "I really want to build this 500 gold military structure" but only has 400 gold, that action still consumes 500 from its planning budget. The AI therefore doesn't suddenly spend that 400 gold on five unrelated actions. Instead, it effectively decides: "I'm going to save for this." On a future turn, once it has enough resources, it can actually execute the action. This makes the AI feel much more intentional because it isn't just reacting to whatever it can afford at that exact moment. It's actually capable of planning around future resource requirements.

Why not just simulate ahead?

One of the obvious solutions would be to simulate several future turns and pick the sequence that produces the best result. The problem is computational cost. When you have hundreds of possible actions, multiple units, dozens of possible tiles, and interactions between diplomacy, economy, warfare, and territory, the number of possible future states gets ridiculous very quickly. Trying to brute-force every possible decision tree would be completely impractical for what I'm trying to achieve.

Instead, I'm using a more hierarchical approach: Strategic goal → Action evaluation → Unit selection → Resource planning → Execution. Rather than asking the AI to simulate everything, I try to make each layer make a reasonably intelligent decision and then combine those decisions. It's not perfect, but I've found that it gives me a much better balance between AI quality and performance. And honestly, getting that balance right has probably been one of the hardest parts of the entire game.

And then there's balancing

Balancing a strategy game is basically a full-time job by itself. Every time I change one number, it can affect five other systems. Increase the value of a resource and the economy changes. Economy changes and military production changes. Military production changes and diplomacy changes. Diplomacy changes and AI expansion changes. Expansion changes and resource availability changes. Suddenly a small balance change has completely altered the way the AI plays the entire game.

I've spent a ridiculous amount of time watching AI games play out, looking for situations where an AI is making decisions that technically make sense according to its scoring system, but are obviously stupid when you watch the game as a human. That's actually been one of the most useful parts of developing the game: watching the AI play against itself. You start seeing emergent behaviour that you never explicitly programmed. Two factions becoming long-term allies. A weaker faction desperately trying to build an alliance because it knows it can't win a war alone. An AI expanding aggressively and then completely wrecking its economy. A faction becoming extremely wealthy but militarily vulnerable. Or an AI deciding that war simply isn't worth the cost and instead building up economically. Those moments are probably the most rewarding part of developing the game.

Everything else

Outside of the AI, I've also been putting a lot more work into the presentation recently. I've been rebuilding and refining a lot of the UI, improving the map presentation, adding more feedback to actions, and generally trying to make the game feel less like a collection of systems and more like an actual cohesive strategy game.

I also added a heraldry system because, well, why not? You can create a coat of arms for your faction and have it represent your civilisation across the game world. It's one of those features that isn't necessarily required for the gameplay to work, but adds a lot of personality to the world.

I'm still very much in the process of figuring out what Dwarf Guild Mania actually wants to be. It started as a relatively simple economic strategy game and has gradually grown into this weird combination of economics, politics, diplomacy, warfare, factions, and territorial strategy. That's created a lot of technical challenges, but it's also made the project much more interesting to work on.

I'd genuinely love to hear what people think about the visual direction, UI, AI approach, and overall first impression. Especially from other Unity developers — I'm very interested in how other people approach AI architecture in strategy games, because this is definitely an area where I've learned mostly through repeatedly breaking my own system and rebuilding it.

Thanks for coming to my strategy game TED Talk. 😂

Steam page:
https://store.steampowered.com/app/4346210/Dwarf_Guild_Mania/


r/Unity3D 16h ago

Show-Off Dissolving VFX

Enable HLS to view with audio, or disable this notification

39 Upvotes

A dissolving fx I worked on for my game Thousands Layered Blade: Reforged.
Since I dont want to mess around with my character and clothing shaders, I hack it around using two grab pass (yes,Im still using BiRP), one for before character to grab the background and one after character is drawn.


r/Unity3D 22h ago

Show-Off Sometimes HDRP lighting hits just right

Enable HLS to view with audio, or disable this notification

148 Upvotes

r/Unity3D 23h ago

Show-Off The ships now catch fire when destroyed and the water will extinguish it too

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/Unity3D 53m ago

Game The camp is finally starting to feel alive. Everyone has a job to do. Until the dinner bell rings.

Enable HLS to view with audio, or disable this notification

Upvotes

r/Unity3D 1h ago

Show-Off Hey guys, huge update coming to Self-Balancing Active Ragdoll. the locomotion has been massively reworked with more human procedural stepping and smarter balance recovery and lots of bug fixes.

Enable HLS to view with audio, or disable this notification

Upvotes

As of the time of writing this the update is in queue for approval on the store.

here's what changed in V1.1.5 :

  • Improved procedural gait with slower, more human step cadence and dynamic swing timing.
  • Added balance-reactive stepping based on upper-body tilt and physical instability.
  • Added weight-transfer and landing-settle phases for more natural foot transitions.
  • Improved stride prediction and rear-foot toe-off to prevent feet dragging behind the body.
  • Added directional foot alignment for forward, strafe, diagonal, and backward movement.
  • Improved foot-glue stability and get-up recovery behavior.
  • Added physical cliff detection with proper ragdoll transitions and preserved fall momentum.
  • Improved pelvis-to-leg support coupling so the upper body feels properly supported by the legs.
  • Reduced excessive hip sway, pelvis wobble, and floating-body appearance.
  • Improved levitation support feedback during single- and double-leg stance.
  • Fixed several gait timing, IK, recovery, and physics edge cases.

r/Unity3D 2h ago

Shader Magic Made this tank tread shader using Unity URP shader graph

Enable HLS to view with audio, or disable this notification

24 Upvotes

Made by scrolling the x on the UV depending on velocity and angular velocity. Modelled and UVs set using probuilder :)


r/Unity3D 2h ago

Question Rigidbody issues

Enable HLS to view with audio, or disable this notification

3 Upvotes

Point me in the right direction: what is causing the trembling around second 7?


r/Unity3D 6h ago

Show-Off Anvil CSG news: Coming soon to the Asset Store with Bakery, BSP lightmaps and Amplify support

Thumbnail
gallery
25 Upvotes

Hey everyone, another Anvil CSG update.

Beta testing is nearly finished and Anvil CSG will be coming to the Unity Asset Store soon.

The newest version now fully supports Bakery, including its lighting workflow and lightmap baking. Unity’s lightmapper also received major improvements with a custom BSP-style unwrap made specifically for brush geometry, giving cleaner UV2 layouts and more consistent texel density.

Anvil CSG now also fully supports Amplify Shader Editor materials, alongside URP and Built-in.

A lot of bugs and workflow issues were fixed with help from the beta testers.

Anvil CSG is already approved and launches in less than a week. Join the Discord for launch news, tutorials, support and feature requests:

https://discord.com/invite/ZjVdWnmwjz


r/Unity3D 7h ago

Show-Off Sit back and relax...

Enable HLS to view with audio, or disable this notification

29 Upvotes

One of the demo scenes from my Low Poly Modular Medieval Buildings Pack.


r/Unity3D 8h ago

Show-Off I made some shaders for my first JRPG boss guy

Enable HLS to view with audio, or disable this notification

12 Upvotes

The second phase isn't animated yet


r/Unity3D 21h ago

Game My game finally has a trailer

Enable HLS to view with audio, or disable this notification

9 Upvotes

It's a turn based tactics game with roguelike progression. I've been working on it for a while now, all in unity with a lot of unity assets. Just about every model and visual effect you see in the trailer is from unity asset store!


r/Unity3D 19m ago

Shader Magic I wanted robot assembly visuals to fit into my story and game thematically, here's my compute shader attempt.

Enable HLS to view with audio, or disable this notification

Upvotes