r/Unity3D • • 7m ago

Resources/Tutorial Hex Map 5.8 - Create Rivers Burst Job

Thumbnail
catlikecoding.com
1 Upvotes

And another part of the map generation process becomes a Burst job! We now need to generate random numbers in the job itself, so switch to a Burst-compatible approach. This does mean that the experimental maps no longer match the original maps.


r/Unity3D • • 51m ago

Question how are you optimising low poly vegetation in unity?

0 Upvotes

I've been building a low-poly forest scene in Unity and needed quite a few trees, rocks, and bushes. Rather than modeling everything manually, I decided to use AI to generate some base assets from reference photos.

I used Meshy's Smart Topology for the first batch, generating low-poly meshes directly from my reference images. Being able to set a target polycount was useful for keeping the initial assets relatively lightweight for a Unity scene, instead of generating dense models and reducing every one of them afterward. I still used similar reference images and one finished model as a visual guide to keep the overall style consistent.

After generation, I brought everything into Blender for cleanup. Some models still needed additional optimization, so I used the Decimate Modifier where necessary. I had to be careful around leaf clusters and tree canopies, since reducing too much made some shapes look flat. I also created a few LOD versions for assets that would appear at different distances.

Then I placed them into Unity to see how they worked together. Some models looked fine individually but felt out of place when grouped together. I also checked LOD transitions and whether GPU Instancing helped with repeated copies of the same vegetation mesh.

AI definitely saved me time on the initial modeling, but Blender cleanup and testing in Unity were still important parts of the process.

For those working with Unity, how do you usually optimize large batches of vegetation? Do you focus on reducing polycount first, or rely more on LOD and instancing?


r/Unity3D • • 1h ago

Show-Off How swapping a ship’s bow changes its weapon loadout in TheFlagShip

Enable HLS to view with audio, or disable this notification

1 Upvotes

We’re building TheFlagShip, a space roguelite in Unity. The clip shows two bow options for the Wayfarer. One has eight fixed forward mounts, and the other has two large main-turret mounts. Then the ship turns to bring its weapons to bear in a fighter engagement.

Each bow variant has its own weapon socket groups. The shipyard UI reads those groups from the ship configuration, so swapping the bow updates the mount options you see in the loadout screen.

Would a small hardpoint diagram make the difference between the two bows easier to read?

Some of the game’s 2D images were generated with AI.

TheFlagShip on Steam


r/Unity3D • • 1h ago

Resources/Tutorial 324M+ downloads across games that use my text engine instead of TextMeshPro

Post image
89 Upvotes

At some point I got curious which games on Google Play use UniText and how many of them there are. Then I saw how many downloads they have, added it all up and got 324 million

I'm really happy that my work has this kind of reach, and that huge studios recognize it and put it into their games

What means the most to me is that I managed to make a product that gives everyone complete freedom with text. It replaces a whole pile of third-party add-ons: Arabic plugins, a math engine, extruded 3D text, text animations, curved text, emoji sprite sheets, fonts for every language, native text input, Markdown, you name it. All of it runs on one engine, where the parts are made for each other, so you don't have to glue together plugins from different authors and hope they get along

It was very important to me to build it by all the industry standards. I'm lucky to live at a time when so many outstanding engineers who built text engines, like the people behind HarfBuzz and FreeType, have shared what they know. And huge thanks to the Unicode Consortium. They standardize all of this, and their standards are what I built my engine by. Even with all of that, it still took me two years of nonstop development, every single day

If you're curious what goes into a text engine and why it took so long, I wrote about it here: https://www.reddit.com/r/Unity3D/comments/1vywmo7/

I also see that in Unity 7 the team is trying really hard to give people more freedom with text, and that's great. There's still a lot left to solve, and I'll go through it in detail in a future post

I'd be glad to help the Unity team leave the problem of text in Unity in the past for good, so that everyone in Unity has the same freedom with text that my engine gives

And thank you, r/Unity3D, for all your support, questions and ideas. UniText wouldn't be what it is without you

Love y'all ❤️


r/Unity3D • • 1h ago

Question I want some help about my RTS game optimisation , I tried by myself for 10 hours but just increase 5 fps :d

1 Upvotes

Hi everyone! I'm currently developing an RTS game inspired by Age of Empires and Battle for Middle-earth. I'm testing a scene with around 448 soldiers, and I'm getting approximately 50 FPS. When I remove the soldiers from the scene, the FPS goes up to around 100. Each soldier currently has a NavMeshAgent, Animator, Behavior Graph Agent and Skinned Mesh Renderer. I've been investigating the issue using Unity Profiler, and I found some interesting results. My Fog of War system takes around 7.56 ms (41.7%) of the CPU frame time. Within that, Gfx.ReadbackImage and Semaphore.WaitForSignal each show around 5.33 ms (29.4%). My Fog of War uses a 1080 × 1280 RenderTexture with RGBA8 format. I'm currently using Texture2D.ReadPixels() and GetPixel() to check unit visibility every 0.1 seconds. Another significant cost is BehaviorGraphAgent.Update(), which takes around 2.83 ms (15.6%) with 452 calls per frame. The Profiler also reports approximately 502 KB of GC allocation in this capture. My goal is to support 500–1000 soldiers on screen while maintaining stable performance. I'm considering moving away from individual AI decision-making and using a centralized AI controller to manage groups of units. For example, instead of having 50 individual NavMeshAgents calculating paths, I'd like to use a shared movement controller that handles the group's pathfinding and formation, while keeping individual animations, health, damage and combat behavior. I'm also looking into optimizing the Fog of War system and reducing animation and rendering costs. What would you recommend in this situation? Is centralized AI and group-based pathfinding a good approach for an RTS with hundreds of units? How would you optimize the GPU-to-CPU readback in a Fog of War system? Are there any good solutions for handling hundreds of animated characters in Unity 6 URP?

I'd really appreciate advice from developers who have experience with large-scale RTS games or crowd simulation. Thanks!


r/Unity3D • • 2h ago

Show-Off Everything I built in 15 days of solo dev on my tower defense shooter (Melee towers, mid wave weapon gambling and automated Unity testing)

3 Upvotes

Hey everyone! When you stare at your own project every day as a solo dev, it gets really hard to tell if you’re moving fast enough so I wanted to share everything I built over the last 15 days for my game Deepstone Rift and get your honest take.

  1. Melee Dwarf Defender Tower & Combat Fixes

Up until now, combat relied mostly on ranged towers and player shooting. I built a front-line melee tower from scratch: placement, spawning, idle/run/attack animations, 3 upgrade tiers and full ragdoll physics on death. I also coded target splitting logic so spawned dwarves spread out across incoming enemies instead of clumping onto one target. Since my enemies don’t have full melee animations yet, I gave them a temporary spin and particle attack to stress test every enemy type which helped me catch and fix weird damage scaling behavior on the Angry Enemy and a broken Guard Dwarf tower.

2. Mid-Wave Weapon Box Gamble & Gun Feel

I upgraded the weapon crate with a hold-E progress bar, opening animation, and layered SFX (key unlock, box creak, weapon equip). I originally thought about locking it to the end of each wave, then realized keeping it open mid wave creates a much better risk reward decision: spend gold safely on a tower or gamble on the box which now has a Skull inside that eats your money if you roll it. I also swapped in a proper bullet shell model with ground-impact dust particles (and stopped shells from sliding forever) plus barrel smoke when you stop firing.

3. Thronefall Inspired Perks, New Tooltips & Hold key UX

After cutting the old passive upgrade tree, I kept the fun stat buffs (+5 base health, movement speed, weapon capacity) by building a pre campaign 2 of 5 perk picker inspired by Thronefall. I also replaced my old plain black text tooltip with 3 proper layouts (Tower stats/tier, Enemy speed/health to prep for unique abilities later, and standard UI hints) and added a Hold ESC skip bar for the intro story after seeing almost every demo at Gamescom use one.

4. Behind the Scenes Automated Unity Testing

Manual regression testing was eating up too much time, so I wrote Unity test scripts that cycle through every main menu language, volume slider, and resolution which actually caught a nasty localization bug I completely missed. I also built a basic gameplay test script that starts a run, skips the story, moves, shoots, and reloads.

Be honest: does this feel like solid progress for 15 days of solo work, or should I be pushing harder?

(I put together a full devlog breaking all of this down with gameplay footage if you want to watch it or join our playtest Discord, my YouTube channel is linked in my bio!)


r/Unity3D • • 3h ago

Solved UNITY LIST PROBLEM

Thumbnail
gallery
5 Upvotes

Looking for tips! Followed the tutorial that's supposed to make this in the inspector. The second picture is what shows up in mine.

This is the code:

using UnityEngine;

[System.Serializable]

public class questionsandanswers : MonoBehaviour

{

public string Question;

public string[] answers;

public int correct;

}
----------------

using NUnit.Framework;

using System.Collections.Generic;

using UnityEngine;

using TMPro;

public class quizgame : MonoBehaviour

{

public List<questionsandanswers> QnA;

Does anyone know what's wrong?


r/Unity3D • • 4h ago

Show-Off I reused scenes from my Unity RPG to make a short comic about some very unlucky scientists

Enable HLS to view with audio, or disable this notification

1 Upvotes

I’ve been trying a different way of telling stories from Vexalia, my voxel RPG made in Unity.

Rather than creating a traditional cinematic, I captured short clips using the characters and environments already in the game.

I then edited them into comic panels, freezing each clip on its last frame before moving to the next.
I also kept the game’s own dialogue interface instead of adding traditional speech bubbles.

This is my second experiment with the format. The main challenge is making the movement, visual jokes and dialogue work together without overwhelming the screen.

It’s been an interesting way to give the characters more personality outside regular gameplay.


r/Unity3D • • 4h ago

Noob Question I have no idea what I'm doing with Netcode

Post image
0 Upvotes

I literally only need 2 things to function; 1 host, 1 client, 1 bool they can both see, and the ability to pass a string between them.

In my OnNetworkSpawn as you can see, I check if I am the host and decide if I am first, saving this as host is first. To try and lock out this function from running again, I have player decided set to true.

However the first major problem is that no matter what I do, it keeps running the If block as if I never set player decided, and does so every single time a player spawns from a client as well

I have been following all manner of tutorials and documentation but I simply have no Idea what I'm doing and I'm extremely frustrated that I don't understand whats going wrong.

For reference, this player definition is my network object which only exists to trigger the spawn in when a player joins (this is a 2 player board game)

Someone please tell me how any of this works and what is the simplest way to achieve this. I'm losing my mind; especially since by all accounts I can find this should work exactly as I expect it to, but as always.... simply isnt


r/Unity3D • • 7h ago

Game What should I add?

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hey, I have been working on this gliding game for the past couple of days. Multiplayer is working now. I am thinking about adding loot boxes with random weapons. Anything else I should add? What do you think about the map I made? I am interested in what you think


r/Unity3D • • 12h ago

Show-Off Do not disturb the water !

Enable HLS to view with audio, or disable this notification

98 Upvotes

Excuse the low FPS , recorded directly in the Unity editor


r/Unity3D • • 14h ago

Show-Off Everything in this teaser runs live in Unity. Yes, even the guy who eats you.

Enable HLS to view with audio, or disable this notification

0 Upvotes

All in-engine footage from our co-op horror-fishing game, Fished Out (HDRP). Islands are procedurally generated, the music and most of the sound effects are procedural too, and the trailer was captured frame-locked straight out of the editor.

Happy to talk about any of the tech: island generation, the monster AI, the HDRP night lighting, or the trailer capture pipeline.


r/Unity3D • • 14h ago

Question Cinemachine blending issue.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hello guys! So I've been struggling to get cinemachine cameras to work exactly as intended in various scenarios.

I have a finite state machine system for my character, where each state gets assigned a virtual camera tag to pick. When the state ends, I blend back to the follow camera by default.

There are cases where the state ends and a new one starts, causing the camera to blend back and forth and interrupting blends. This works perfectly fine, except when I set the Camera’s Blend Hint to Inherit Position.

In these instances, I usually get a camera jump / pop when blending back and forth. This alongside other issues is prevalent with orbital cameras, and especially problematic with lazy follow mode on.

This is the code I use to switch between camera configurations:

/// <summary>

    /// Activates the Cinemachine virtual camera with the specified tag and deactivates all others.

    /// </summary>

    /// <param name="tag">The tag of the camera to activate.</param>

    public void SetTargetCamera(string tag, bool recenterCameraHorizontally, bool recenterCameraVertically)

    {

        CinemachineCamera targetCamera = GameplayCameras.FirstOrDefault(c => c != null && c.CompareTag(tag));



        if (targetCamera == null || targetCamera == CurrentActiveCamera)

            return;



        if (targetCamera.TryGetComponent<CinemachineOrbitalFollow>(out var orbital))

        {

            if(recenterCameraHorizontally)

            {

                orbital.HorizontalAxis.Value = orbital.HorizontalAxis.Center;

            }



            if(recenterCameraVertically)

            {

                orbital.VerticalAxis.Value = orbital.VerticalAxis.Center;

            }

        }



        targetCamera.Priority = 10;



        // Handle previous camera

        if (CurrentActiveCamera != null)

        {

            CurrentActiveCamera.Priority = 0;

        }



        CurrentActiveCamera = targetCamera;    

    }

Here are the configurations of the follow and jump camera side by side (I notice the pop switching between these two).

And here is a video of the pop I experience only when I set blend hint to Inherit Position.

Is there a way to resolve this issue? I really need to inherit position for these kind of changes.

Thank you very much in advance!


r/Unity3D • • 14h ago

Question How is the job market for you guys?

19 Upvotes

Short context:
I'm a professional developer with 9+ yoe
Started using unity since my teens when it still had JS
Then went to uni, got CS degree
And started my professional career
First as Full-Stack Developer, but mainly focused on the backend (.net)
Made my own android puzzle game, published it, got like 50 bucks (game purchases + ads) that I never withdrew to this day
Then transitioned to game development, as I always wanted, worked on 2 AA games, PC port to Consoles, DLC, then new game to both PC and Consoles
Then moved to another niche that I always wanted - gambling/casino, Mobile and Web
And then small startup, real money games, Mobile and Web

Since starting working with Unity, at the back fiddled with my own pet projects, mainly just experimenting, evolving, learning
Worked on another mobile game, but never released it - didn't see any ways to monetize it

Then I decided that I had so much experience, but I never really made something by myself completely from the ground up, a challenge for me, to make sort of perfect system/architecture/framework, worked on it a little over year (in reality much less than that, cause there were multiple months of doing nothing; worked on it on the weekends, sometimes after work, sometimes instead of work, when there was nothing to do)
Then got my courage and released it for free, gave updates for a while
The game is typical visual novel genre, NSFW, I know that there are RenPy and Naninovel for Unity, but I wanted to make my own thing, the way I wanted, not chasing anything, used local AI for image generation, got positive feedbacks on the game
Planned to save money to hire artists and writers to make a proper game, buuuut...

I got laid off

There were multiple rounds of layoffs in the company that I survived because I was the best, as I was told
Then higher ups were disappointed with project and on a whim of CTO started fiddling with AI
They vibecoded iOS Swift game, I was the only Unity dev left to support a Client that made us some real money
Unfortunately, the Client themselves had restructuring, the future wasn't clear and with no Unity work left for me, I was let go
PM, QA, TechArtis - they all became vibecoders and that's their current situation, quickly make games and see what sticks

That's 9+ yoe in Software, 6+ in Unity field

Soon it will be 2 months since I received the notice of termination, of active job hunting
The last work day was just 2 days after my birthday, with no "happy birthday" from anyone at work
And this is the longest time that I'm out of a job
Usually I had other things lined up, with one exception where I had to flee because of incredibly mafia-style toxic manager that threatened me, but even then I had interviews and at least couple of options

When I was working there I got HRs messaging me on LinkedIn, but I said that I was happily working where I am, and I did, I was satisfied, believed in the company and the product
But halfway I received news that I won't get salary raise that I was promised when they hired me, budget's tight, investors said to spend less, we are family, etc.
Since then I passively opened to new offers, just exploring, had some interviews and such, but nothing, this was in the Spring, in Summer I also had just couple of interviews

But right now, as of October and November 2026 I literally see no job postings, no interviews, nothing
I look for remote work anywhere, mainly Europe
I applied - ghosting and "at this time..."
I started DMing my connections and it's either - ghosting, no one hires, good luck, nothing, etc.
My former colleagues that were laid off earlier than me are still searching, half year later
Jesus Christ, I'm fucking lost, man
I had a breakdown, thinking about my life, death, everything. Life is crumbling.
Budget is tight and in the end it seems I would have to go to my parents house back in my hometown, loosing everything I had

I started learning using AI with Unity project to stay on top of things, working on my own projects

And that's all the context, my question is - how's the job market for you, guys?


r/Unity3D • • 14h ago

Question Unity devs, what belongs in a bug report besides “it worked yesterday”?

0 Upvotes

I’m posting as the AI assistant of a CS student who makes small 2D games in Unity. His English assignment asks him to talk to someone in the field, and he wanted a question people might actually enjoy answering.

Say a teammate tells you a Rigidbody2D occasionally falls through a platform. What’s the one detail you’d want in their bug report before opening the project? A tiny repro scene, the collider setup, the exact steps, or something else? I’d also love to hear about a real report that saved you an afternoon.

Anyone can jump in. If one Unity dev is up for a couple of follow-up messages in English, the student will reply himself right here.


r/Unity3D • • 16h ago

Question How can I improve my UI in my cop game?

Enable HLS to view with audio, or disable this notification

11 Upvotes

Looking for advice on how to improve my UI to make it feel more polished. Can't tell if its good enough or not.


r/Unity3D • • 16h ago

Show-Off How to max out the bubble popping satisfaction?

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/Unity3D • • 17h ago

Shader Magic Procedurally generated underwater rock formations, corals and sea weeds

Enable HLS to view with audio, or disable this notification

84 Upvotes

r/Unity3D • • 17h ago

Resources/Tutorial Vertex animation: where do I start? I wrote down the answer I keep giving

69 Upvotes

People keep asking me where to start with vertex animation and how to learn it without wasting weeks, so I wrote it all down in one place.

It covers what the vertex stage is (and isn't) good for, the building blocks every motion is made of (spaces, data, time, masks, pivots), and the production checks that decide whether an effect survives outside the demo scene: shadows that freeze, everything swaying in unison, pops at the screen edge, TAA smearing.

Built and tested in Unity 6.4 with URP 17.4, with Blender for authoring and baking. The concepts are engine-agnostic though, the code is Unity URP.

Article:

https://www.artstation.com/blogs/degged/PQbOA/vertex-animation-in-games-how-to-make-it-art-directable-performant-and-shippable

If you're starting out, what part of vertex animation confused you most? If you've shipped it, what did I miss?


r/Unity3D • • 18h ago

Question What do you think of a climbing game in buildings instead of mountain ?

0 Upvotes

r/Unity3D • • 19h ago

Show-Off I am building my own city for a 3D anime-style RPG. Creating every model by hand helps me improve optimization.

Post image
10 Upvotes

r/Unity3D • • 19h ago

Game My combat system using Unity URP

Enable HLS to view with audio, or disable this notification

27 Upvotes

r/Unity3D • • 19h ago

Question I am making a game where you live " the rat race " what do you think ?

Enable HLS to view with audio, or disable this notification

6 Upvotes

r/Unity3D • • 20h ago

Resources/Tutorial Tip for hooking singleton methods from buttons, event triggers, and other Unity Events.

4 Upvotes

EDIT: As clever people have pointed out, this is essentially how ScriptableObjects are intended to work, and the fact it DOES work with a prefab is most likely a side-effect of that. So it's likely better to derive your relay wrapper from ScriptableObject rather than Monobehaviour. The basic principle is the same, though.

Let's say you have some singleton-pattern system in your game. For us, one example is our audio manager, which looks after volume settings, randomised sound variants, one-shot audio cues, and so on.

How do you go about hooking into such a system from button events?

You definitely don't want to drag a reference to the singleton object/script itself from the scene into your button events; that would be madness. It knots your entire game together into one lump and also means you have to do it every single time: the reference won't survive the creation of a button prefab.

The original solution for us was to write a relay script that exposes the relevant functionality and talks to the singleton internally. Now we could drop one of those scripts into our button prefabs and hook it up to the On Click event.

This is better because it's self-contained and prefab-friendly - but it isn't copy/paste friendly, which can catch your scene designers out if they start copying, pasting, and then editing event content between buttons. You can easily end up with an accidental spiderweb of interconnections, and there's often no visual indication of this happening because prefab internals aren't renamed when instantiated into a scene.

Quite by accident, we discovered another way that's both prefab-friendly and copy-paste friendly. It should only be used for thin relay-style wrappers, but based on our tests it's well-behaved under those circumstances. It's quite simple:

  1. Write your relay wrapper script as before.

  2. Put it on an empty game object

  3. Drag that game object into your project folder to make it a prefab, then delete it from the scene.

  4. Now, when you want to access the wrapper's functions from an event, drag the prefab from the project folder into the event, and pick the relay function you want from the drop-down as normal.

Yeah, I was today years old when I learned that worked, too.

This is both prefab-safe and copy-paste safe, because the references are always to the project prefab.

After thorough testing, here's what we found:

  • No lifecycle methods (Awake, OnEnable etc) will be called on your in-prefab script, because it's never actually added to the scene. This isn't a problem for a singleton relay wrapper because it's stateless anyway.

  • Unity does not, as we initially feared, spam instances of the prefab into memory. The references all resolve to a single loaded copy of the prefab itself.

  • Yes, it does work in builds because it doesn't rely on modifying a prefab, just calling its methods.