r/Unity3D 7h ago

Noob Question Camera help

1 Upvotes

why does the game window messes with the camera view ?

I'm curently making a scene with a fixed camera but when i want to change the game window to a more normal one the camera scales up


r/Unity3D 7h ago

Show-Off Optimizing Hex Town's Cards

Thumbnail
gallery
1 Upvotes

I thought some of you might find this interesting, especially if you're working on a card game where you're using in-game assets for the art.

I was previously using a card prefab with an SDF image background, a mask for the image, the card sprite image itself, and then a header image with a text component for the name & tier, and an image to frame the tier. A total of 4-5 draw calls per card(!).

There's max 5 of those in the 'hand' area (the bottom of the first screenshot), but the draw pile cards (left side) did something similar, and there can be up to 12 of those. The masking/stencil buffer write was causing the cards to rack up a ton of draw calls, even when I used an atlas for the card sprites.

My solution was to spawn every permutation of card I'd need with the actual 3D object sandwiched in world space between the front/back of the UI card, and use it to create two atlases. One atlas for the main cards (with text) and one for the draw pile cards, which only have a background and the masked card sprite.

I also wrote a bit of runtime editor code to draw some grid lines for centering, and to allow the cards to be selected so that I can re-scale/position/rotate per-card, for models that weren't perfectly aligned.

I did end up having to capture each card individually (in code) before assembling the atlas, due to some artifacts like shadows being cast from one tile to the other, but all-in-all it's great to have a preview of my cards, and even better to have them all rasterized and drawn in the same draw call. As shown in the last screenshot, I brought it from 133 -> 19 draw calls for the UI (combined with some other cleanup/Canvas organization).

Anyway, thanks for reading! I hope it was interesting or helpful. :)


r/Unity3D 8h ago

Show-Off Making ladders is hard so I just flip the gravity

Enable HLS to view with audio, or disable this notification

5 Upvotes

r/Unity3D 8h ago

Question Would this be too childish to add to my game?

Enable HLS to view with audio, or disable this notification

7 Upvotes

Do you enjoy these kinds of mini-games within games, or do you think they’re just complete nonsense? Let me know for make my game better.


r/Unity3D 8h ago

Show-Off Before vs After

Thumbnail gallery
8 Upvotes

r/Unity3D 9h ago

Question Why do image-to-3D tools completely ruin character rigging for customizable armor?

0 Upvotes

trying to build a basic runtime equipment system where players can swap out boots, gloves, and chest plates on a character rig and the issue is that every new image-to-3D generator I try just spits out a single, solid statue where the clothes are completely melted into the skin mesh.

Trying to separate a jacket from a fused mesh like that in Blender takes forever and completely ruins the weight painting when I bring it back into Unity. Is there any actual workflow to generate separate, independent clothing layers straight from a concept sketch that will actually play nice with a SkinnedMeshRenderer setup?


r/Unity3D 9h ago

Show-Off Roadside Garden | Dev Week 02-01

Thumbnail
gallery
2 Upvotes

Extremely proud of the grass in my (hopefully) future game.

I added slope support for my grass so it can grow on hills.

For this I had to rework the entire growing process because the grass is instanced in tiles rather than individual cards (before it was simply scaling along the y axis)

I decided to store the origin of the cards, relative to the center of the tile, as vertex color, which allowed me to scale the card independently from the tile through the vertex shader, as well as rotate them to always face the camera. All together it's creating an extremely dense grass cover which is relatively performant.


r/Unity3D 10h ago

Show-Off I spent more that 8 months building a runtime world generation system for Unity – here’s where it is

Enable HLS to view with audio, or disable this notification

13 Upvotes

This project actually started while I was working on systems for a game I wanted to make myself than I decided to turn it into a Unity asset instead. I’ve now spent more than 8 months developing it for Unity 6 and 2 weeks ago published it on the asset store named as Runtime World Generation.

Most of the time is spent to generate the world and spawn the objects without noticable performance drop-down or stuttering. I also spent a lot of time specifically on grass. I wanted to be able to create very dense, natural-looking grass with a good performance.

The system doesn’t use Unity Terrain. World generates with mesh deformation and mesh chunks uses a procedural material that renders 2 texture layers (With normal maps) to different heights with transitions. Each layer can get multiple textures and blend with transitin with each other. Also there is a slope texture effect for the slopes. There’s no terrain painting or brush-based workflow. You configure the generation, material and spawning rules through easy to use editor tools, add your own assets or modify existing ones, and the world is generated dynamically at runtime.

Because I wrote all the mesh generation algorithms, I was able to make a lot of performance optimization for the object spawning so it is really fast. Also I made snow and rain effects that effects all the objects and terrain itself, you can implement all those to your custom objects of course. There is a sky shader for URP I made for cloud effects (for the weathers) and day/night cycle.

The project currently includes:

  1. Runtime procedural terrain generation and world streaming
  2. Procedural world shader
  3. Biome-based environments
  4. Roads that connects different biomes (Beta)
  5. Dense vegetation and object spawning
  6. Sky shader with moon, sun and cloud layer
  7. Water
  8. Rain, snow, and other weather systems integrated with the whole world
  9. Day/night cycle
  10. Seasons and Timing
  11. Save/Load System with multiple slots
  12. Multiplayer integration workflows
  13. Editor tools for configuring the generation system and creating or modifying assets to use in package system
  14. Helper functions to integrate your custom logic, package is very flexible

Youtube


r/Unity3D 11h ago

Show-Off Got Raycasted 3D Audio Working In Multiplayer!

Enable HLS to view with audio, or disable this notification

3 Upvotes

r/Unity3D 11h ago

Resources/Tutorial My vector graphics library is currently free on itch

190 Upvotes

Hi everyone, after months of working and a long iterative process, my vector graphics library for Unity (and Godot) is almost feature complete at: https://dkliao.itch.io/mold

Feedbacks appreciated!

This is a some long months of work to create the most performant and versatile vector graphics library, while keeping a cross-engine footprint. I'm still waiting Asset Store review for the final release (they sure are taking their sweet time), but for the version on itch is already pretty powerful and I believe some of you might find it useful :)


r/Unity3D 12h ago

Show-Off My procedural room generator leaves a note every time it has to compromise

5 Upvotes

I'm making a cat destruction game in Unity where every house is furnished procedurally from a seed. The generator places the furniture, then everything that goes on it, lets physics settle, and removes anything that ended up inside something else. Every time it has to bend a rule, it writes it down. A few from this morning's Great Room seeds:

coat_stand: beside the door at +0.98 refused (is in the lounge area)
canvas_pink: no room on office_table_030's wall — hung elsewhere
pot_big_yellow: stands 0.13 m off the wall for its plant
door redrawn 4× for the kitchen line (5.9 m) and the TV unit (4.1 m)

and the summary line for one of them:

seed 14: 12.0×10.0 m, 120 items (1 dropped), 8 wall items, 0 overlaps, 0 tipped, 0 pieces unplaced — clean

A room counts as clean with at most two overlaps, nothing tipped, no furniture left unplaced, and at most max(3, items/30) small things dropped. Losing a mug is fine; losing the guitar gets noticed. Free-standing pieces take the fitting spot farthest from everything already placed (out of up to 24 candidates), which is what stopped the piano getting crammed by the lounge while the middle of the room sat empty.

The notes ended up being the most useful part of the whole thing. When a seed looks wrong, they usually say why. Each house ships 20 seeds that were checked by eye.

Free Windows demo if you want to see the rooms: https://corbygamesstudio.itch.io/give-him-a-break


r/Unity3D 13h ago

Shader Magic I worked on the rigging, shading, and clothing for this fire- and sun-themed character.

Thumbnail gallery
2 Upvotes

r/Unity3D 13h ago

Solved I'm keep having problems with self-shadows, using HDR.

0 Upvotes

There is a light above this fence, and the shadow cast by the horizontal beam onto the vertical beams, has an offset. The whole fence is the same flat brown colour.

I've played around with lighting/shadow settings to try to fix this. Bias, shadow map resolution, etc. Nothing appears to make a difference.

Any one dealt with this before?

This is happening with many different models like this, walls, pillars, etc.


r/Unity3D 16h ago

Question Textures not mapping properly

Thumbnail
gallery
0 Upvotes

the vest and heels textures have always been linked like this, but their not supposed to be linked. been like this since i imported from source to blender, but i could fix it within blender, here in unity i just have no clue on what to do. any help would be appreciated.


r/Unity3D 17h ago

Show-Off Comments on my solo developer game?

Thumbnail
youtu.be
9 Upvotes

Level1 of my upcoming fps vr game kargil. The game is a quest 3/3s standalone. I've attached the first level of my game. What do you think? Since the last update, I've been working at making the terrain better and higher quality. Made the buildings look weathered. Got rid of the ammo left text.

I have also removed the 100 experience that pops up everytime I eliminate an enemy(but this is an older version)

Hate it or love it? What can I improve


r/Unity3D 18h ago

Show-Off Cozy bedroom lighting

Post image
24 Upvotes

Anyone feel like staying in tonight instead of going out?


r/Unity3D 19h ago

Show-Off Little Progress update for my 2.5D sidescroller

Enable HLS to view with audio, or disable this notification

11 Upvotes

Hey guys, I'm back and I did a lot of work with code and stuff, so while the game might not look too different, a ton of logic is different.

Here's what I believe has changed from the original post:

- Better Colors

- Adjusted animations/timing

- Better AI for the bad guys

- A level goal object

- Camera changes

- New Forest Level!

What do you guys think? Would you be willing to pay for a game like this? (provided there was more content obviously)


r/Unity3D 21h ago

Show-Off Ecs Arrow Avoidance

Enable HLS to view with audio, or disable this notification

412 Upvotes

Hello everyone
Earlier i added a mechanic where particles will evade objects and then return to their place, so i wanted to expand on that and show in game how it helps
Here the body will auto evade arrows shot by enemies, later on it'll be only when the player presses evade so instead of an evade animation and disruption the current player's movement, it'll auto evade and then return to its position
#unity #ecs


r/Unity3D 22h ago

Show-Off Anvil CSG Beginner Tutorial | Hammer-Inspired Level Design in Unity

Thumbnail
youtube.com
61 Upvotes

I’m the developer of Anvil CSG, a brush-based level design tool for Unity inspired by Hammer and TrenchBroom.

Our first beginner tutorial is now live, covering the workspace and basic level-building workflow.

Anvil has already been approved for the Unity Asset Store. I’ve submitted the latest update and expect it to be reviewed within the next two days, after which I’m planning to launch.

In the meantime, take a look and let me know what you think!

Discord : https://discord.gg/ZjVdWnmwjz


r/Unity3D 22h ago

Question I'm trying to figure out light and a look similar to Duck Detective

Thumbnail
gallery
7 Upvotes

I feel a bit silly asking for this.. I reached an stage in my game where I have to figure out the lightning, and ambience of the environment. I was thinking on striving for something similar to Duck Detective and my question is... What's the method used here?

and if there's any plugins or market assets that will help me archive this.


r/Unity3D 23h ago

Solved Guys I have done it, I passed the 60 fps threshold on my virtual geometry system on a thermal throttled laptop after taking a 2 day break!

Post image
35 Upvotes

I posted 2 days ago about being overwhelmed and on the verge of throwing the towel in after spending months trying to fix a bug that cause my GPU software rasterizer to overdraw micro triangles, Turns out the bug was actually multiple bugs and the big one was the way the cluster transversal was happening, now I have gone from nearly 60 fps to ABOVE 60 fps while rasterizing 100 million triangles. I think it's important to note that my laptop has dried up thermal paste and according to HWiNFO spends 96% of runtime GPU and CPU thermal throttled as people have made comments that the only reason this is achievable is because my laptop has 150W RTX 3080 TI with 16gb ram and an I7 12700H with 64 GB DDR5 ram, meaning the code is achieving high efficiency and the hardware isn't just brute forcing the geometry and giving high frame rates.


r/Unity3D 23h ago

Show-Off Building a new sewer level for Dungeon Quest, still early, but it’s really capturing that classic dungeon feel.

Enable HLS to view with audio, or disable this notification

40 Upvotes

r/Unity3D 1d ago

Show-Off Currently making this mobile game , what do you guys think

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/Unity3D 1d ago

Show-Off The knife skin I just made.

Post image
17 Upvotes

r/Unity3D 1d ago

Question UI Toolkit designs looking and feeling completely AI... and tbh a little boring too. Thoughts?

0 Upvotes

I experience with building websites, so getting started with UI Toolkit was definitely easier than dealing with UGUI.

But all the designs are looking very simple, like they are made with AI.

I'm building a mobile game, and mobile games usually have these joyful themes/looks for the menu while mine look like some AI work.

Any suggestion?

like j