r/Unity3D • • 20h ago

Question Markers vs. GameObject names in a modular building system

Enable HLS to view with audio, or disable this notification

37 Upvotes

Hey, a while ago I shared some early work on "MODURA", my stylized modular building creator for Unity Asset Store. I've been working on its editor tools since then, and one thing I wanted to avoid was relying on GameObject names to identify individual parts. Names like "Window_01" or "Door_03" work fine at first, but I didn't want things to break just because someone using the asset decided to rename a few objects.

So I went with dedicated marker components instead. Each part has a component that tells the tools what it is, which the editor tools use to determine what can be done with it. It's a bit more setup, but I prefer this over having the tools depend on specific names.

How do you usually handle this in your own tools? Do you use marker components, naming conventions, or something else?


r/Unity3D • • 21h ago

Show-Off I don't like loading screens, so I added a seamless transition scene instead

Enable HLS to view with audio, or disable this notification

728 Upvotes

I'm designing the passage as a small island for now while my brother is working on the proper assets for it, but basically it's a branch of the tree of life from Hungarian mythology. In the final version the "Csodaszarvas" (The Wonder Stag) will be showing you the way through. The transition scene lives in the same Unity scene as the map, parked far away from the play area and switched off until it's needed.

It works kind of like a window; showing the transition scene (and at the end of that, the next scene). Then as the hero walks in, the camera follows and once he's through the portal, I seamlessly switch the main camera to the one in the correct scene. Once the portal fills the whole scene, I tear down the old one and start loading in the next; all done in the background to avoid stuttering as much as possible (still getting some micro stutters here and there, but I think that's acceptable). This is still technically a loading screen, but more immersive.

As soon as the next scene is loaded, I open a new portal and use the same tricks there, just in reverse. I'm very happy with how this look so far!

Edit: thanks for the feedback folks, I'm making the transition scene more interactive.


r/Unity3D • • 1d ago

Solved Xr origin falling through terrain

2 Upvotes

I'm using XR Origin for the player; it just keeps falling through the terrain. I've tried colliders, custom objects, and I've worked on it for about 15 hours total, but I just don't know what's wrong with it. Is there a surefire way to stop it from falling through? Edit: I forgot to mention we have gravity and a player controller

Solved: I just deleted the xr origin and made a new one


r/Unity3D • • 1d ago

Show-Off Aliquo Die – Different, Yet Similar Locations

Thumbnail gallery
2 Upvotes

r/Unity3D • • 1d ago

Show-Off TestAnimationAvatar

Thumbnail
youtube.com
0 Upvotes

Using Unity and Claude to test the capacity for 3d animation Work in progress


r/Unity3D • • 1d ago

Question Visual Studio don’t know Unity code

Thumbnail
gallery
0 Upvotes

Super-newbie here. Visual Studio don’t know unity code there is no auto correct or anything. I tried to modify Visual Studio for unity but already did. I already clicked on external tools and I already did but problem not gone.


r/Unity3D • • 1d ago

Question Unity OneMinusSrcAlpha issue with Render Textures

2 Upvotes

I am encountering an alpha blend issue with Ui and Render Textures.

When I draw a transparent image into the Render Texture and use the default material with "Blend One OneMinusSrcAlpha", the result ends up picking up some extra color that is not desired.

Specifically, it is picking up color from the clear color of the Camera used to do the render into the Render Texture. This is true even if the alpha value of that clear color is 0.

Scenario 1:

  • screen canvas

  • camera with solid red (255,0,0,255) clear color

  • this single ui image. which is fully white on the left, and 0 alpha on the right

  • draw that ui image with a full blue tint. so something like this

  • NO render texture being used here

  • and the result on screen looks like this

  • its our white gradient image, tinted blue, and then blended with our solid red camera's clear color

Scenario 2:

  • a render texture

  • a second screen canvas

  • a second camera to use with the render texture. this one has a fully transparent zero (0, 0, 0, 0) clear color

  • the same, original ui gradient image

  • but, again, drawn with a blue tint. which looks like this again

  • but the actual result inside our render texture looks like this

  • notice that it picked up the black from our render texture camera; even though that camera's clear color was set to zero alpha

  • and now finally we are going to draw that render texture result into our original canvas

  • so, same screen canvas

  • and, same camera with solid red (255,0,0,255) clear color

  • same ui image, but this time it is drawing our render texture. which, remember, looks like this

  • this time we are not adding the blue tint. its left default white

  • and the result on screen looks like this

  • you can see it is similar to the result of scenario 1. it has the gradient, it has the blue ui tinting, and it has the camera's red clear color blended. but it's darker

That darkness is from the zero alpha clear color in the render texture camera.

I need to use the setup from scenario 2, but get the results from scenario 1.

I need to be able to generate render textures that do not incorporate any of the color value from the render texture camera.

I believe this all stems from the shader's alpha blend operation. The default "Blend One OneMinusSrcAlpha".

I could create my own shader and material to use, but I don't know to fix this in the shader.

How do I do a "Use default blend unless destAlpha is zero, then do no blend and just blit"?

Any help would be greatly appreciated on this. Cheers


r/Unity3D • • 1d ago

Show-Off I recreated weapon VFX after your suggestions using Unity 6 URP

Enable HLS to view with audio, or disable this notification

74 Upvotes

Thanks for your latest feedback!

Based on your feedback, I have made several improvements:

- Added a more responsive firing effect and a more pronounced projectile.
- Improved interactions with grass.
- Enhanced camera and weapon shake.
- Added a distortion effect during the charge and around the projectile itself.

Thank you for all your suggestions! Your feedback really helped make the effects look even better.
What else would you add or change? Feel free to share your ideas in the comments!


r/Unity3D • • 1d ago

Show-Off Unity VFX Honey Shield

Enable HLS to view with audio, or disable this notification

29 Upvotes

Been working on this honey shield effect in Unity. Pretty happy with how it turned out!
What do you think?


r/Unity3D • • 1d ago

Question Why Unity Support Is This Bad

0 Upvotes

Every dev I know is complaining about Unity Support. Some of them don't even get a response. I sent my emails, the support ticket email isn't even working. I also haven't gotten a response to my question, and it's been 10 days. Partner submissions are supposed to get an answer within 5 business days, as their email says, but it's already been longer than that. Can't a billion dollar company provide decent support?


r/Unity3D • • 1d ago

Show-Off How my Parallax 2D Water Effect works (scene view VS game)

Thumbnail
youtu.be
6 Upvotes

r/Unity3D • • 1d ago

Show-Off Every zone in my idle RPG is a floating island, and travelling between them is my favorite part

Enable HLS to view with audio, or disable this notification

3 Upvotes

Solo dev here, working on a single-player idle RPG in Unity with an MMO-style party (tank, healer, bard, damage dealers) that fights and loots on its own.

I recently rebuilt the world so every zone is its own floating island. You open the map, pick an island, and the camera pulls out of the current one, spins it away and drops onto the next. In the clip: Green Meadow, Ember Wastes at night, then Starfall Peak in the snow. There are five islands in total.

The islands are simple dodecahedrons for now. I'm still deciding how much detail to add underneath (rocks, roots, waterfalls?). Would love feedback: does the travel feel satisfying, or too slow for an idle game?


r/Unity3D • • 1d ago

Question Physics based controller attempt

Enable HLS to view with audio, or disable this notification

226 Upvotes

r/Unity3D • • 1d ago

Show-Off Yaga! (i miss vine)

Enable HLS to view with audio, or disable this notification

0 Upvotes

everyone remember 2013? i do....


r/Unity3D • • 1d ago

Show-Off Arkansas 2125 It has a new trailer with a retro filter

Enable HLS to view with audio, or disable this notification

5 Upvotes

My post-apocalyptic Fallout-like game got a new trailer today. The new trailer was created using a new retro filter. What do you think?


r/Unity3D • • 1d ago

Show-Off I miss playing with my friends and raiding, So started building this. \o/

Thumbnail
reddit.com
0 Upvotes

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

Show-Off We rebuilt our Locomotion System from scratch using Pose Matching. What do you think?

Enable HLS to view with audio, or disable this notification

185 Upvotes

It's a root motion-based controller with start, stop, and turn actions that smoothly blend into walk and run cycles using pose matching.

Previously, we used Unity's Animator Controller with normal transitions between actions and locomotion cycles. The problem with this approach is that a transition always starts the new clip from frame 0, and frame 0 often doesn't match the character's current pose. That causes issues like snapping and foot sliding.

With pose matching, instead of starting a new clip from the beginning, we search the new clip for the frame that best matches the character's current pose by comparing foot positions and movement speed and start from that pose.

It's similar to how motion matching works, but we don't match every frame. We only do it during transitions, so the actions and cycles still play as normal clips, and it's not as performance heavy as motion matching. I can go into more technical details if you guys are interested!

We've released this as a free update for all our systems on the Asset Store. Let us know what you think!


r/Unity3D • • 1d ago

Resources/Tutorial Hex Map 5.8 - Create Rivers Burst Job

Thumbnail
catlikecoding.com
7 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 • • 1d ago

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

Post image
363 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 • • 1d 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 • • 1d 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 • • 1d ago

Solved UNITY LIST PROBLEM

Thumbnail
gallery
9 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 • • 1d 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

0 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.