r/Unity2D • u/SporeliteGames • 14h ago
r/Unity2D • u/sinanata • 5h ago
Free Asset/Tool open source: unity-ui-uoolkit-design-system 1.6.0 is out and led an engine bug fix
🎉 Our bug report became a Unity engine fix. While putting GPU materials on world-space panels we traced a WebGL crash (GfxDevice::CopyBufferRanges: range reads out of bounds) to one line in Unity's UI geometry updater, reported it with the root cause and a suggested fix, and shipped a build-machine patch in the meantime. Unity's UI Toolkit team took it as UUM-151098 and fixed it in Unity 6000.6.2f1 and 6000.7.0b1, the way the report proposed. On those editors world-space materials just work in WebGL, no patch and no flag; on 6000.5 (Won't Fix upstream) Tools/UirStagingPatch still has you covered. Thank you, Unity.
r/Unity2D • u/Dravendnd • 12h ago
Question/Help Need help. Trigger not working
I am very new to this. Here is my code in the picture. I have a door. When the Player walks through the door. The trigger needs to happen. However it's not triggering. On the player I have the Rigid body 2D selected. However the door is still not triggering. I've been trying for 2 hours. I don't know where the problem is. Please help.
r/Unity2D • u/leblanc-james • 16h ago
Game announcement Set 4 for my chess game made on Unity!
Hey everyone! I made a online chess variant called MetaChess using Unity that allows you to customize your board with different types of pieces before playing. It's a draft-based version of chess with new pieces and asymmetric boards, creating billions of more possible board positions and new strategies that have not been discovered yet.
I just released set 4 for my game, which includes 5 new pieces: bomb, astronaut, catapult, siren and philosopher!
Bomb - Placed anywhere in the center rows and never moves. When captured, by either side, it destroys everything around it, kings included
Astronaut - At the start of each turn, 3 random tiles within 2 squares light up. It can jump to or capture on any of them. Can also capture enemy rocks.
Catapult - Moves like a king. Can throw any friendly piece next to it, excluding the king, 3 or 4 tiles ahead, or 3 ahead and 2 to the side. A piece thrown onto an enemy takes it down with it.
Siren - Moves and captures like a king. Can pull the first piece it sees in any direction 1 or 2 squares toward itself.
Philosopher - Moves and captures like a pawn and learns the moves of every piece it captures. Never promotes, but after reaching the far rank it can also move backward.
Also a huge shoutout and thanks to iwantcheckmate (one of the best chess variant youtubers out there!!) for playing my game! You can check out his video here! https://www.youtube.com/watch?v=VVuAgqLzD_o
Here's the link if you are interested and want to play with your friends!
https://store.steampowered.com/app/4257320/MetaChess/
r/Unity2D • u/New-Statistician7136 • 23h ago
Question/Help Sprites not showing up in build
I’m making a Unity game for my senior project, and right now I’m trying to build and run it so I can get footage (should probably note that this is a school computer, and I was given special permission to launch .exe filed). But, when I tried to run it outside of the editor, all of my sprites disappeared, and certain scenes wouldn’t load. Everything looks fine in the editor, and I’ve adjusted the sprite layers to be above 0. Nothing seems to be working. Any tips?
Game announcement I'm making a hand-crafted 2d Unity detective game
The town of Torovo resets after three days. Every character has their own schedule in these 72 hours. Use the loop to your advantage to learn their routines and build your case.
Used some Unity magic to make it playable in-browser.
r/Unity2D • u/Conked-Out • 4h ago
Feedback needed Which UI layout do you prefer?
Trying to make space-efficient, intuitive UI when there's two wizards with giant conkers taking up most of the screen has been a challenge! I'd love to know which of these two layouts people prefer at first glace (ie: does one feel more cluttered / arranged more intuitively). There's a key on the final slide to clarify a few elements that might not be immediately obvious.
I'm down to these two layouts at the moment; I'm aware they're quite similar, but I just can't decide on these final placements. I'd love your help! The first screenshot is the current layout, and if you'd like to play with it for yourself there's a Demo on Steam! (It's a physics-based conker/deck builder).
r/Unity2D • u/dmarshallgaming • 3h ago
Tutorial/Resource Seamless wraparound (torus) map in Unity 2D: extra Cameras with viewport rects instead of duplicating GameObjects
Unity 6, 2D, Cinemachine 3. I needed a galaxy that wraps: fly off the right edge, come back on the left, with no visible seam. The usual answer is to clone every GameObject near the edge, but with hundreds of ships, projectiles and planets that is a lot of ghosts to keep in sync, so I did it with Cameras instead:
- Extra Cameras, only at the seam. When the main Camera's view hangs past a map edge, I enable 1-3 extra Cameras offset by exactly one map width and/or height. Each one gets a
Camera.rectcovering only its slice of the screen, so the slices tile into one image. Nothing in the scene is duplicated. - Never subtract two positions. Every distance and direction goes through a
MapWrap.ShortestDeltahelper that takes the short way round, and aiming/steering use the nearest "image" of the target. - Physics2D doesn't know about wrapping, so a wrapper around
Physics2D.OverlapCircleNonAllocrepeats the query at the offset images when the circle reaches over the seam. - Objects wrap their own transform in
LateUpdateand raise an event; the camera rig callsCinemachineCore.OnTargetObjectWarped(target, delta)so the Cinemachine camera jumps with the ship instead of swooshing across the whole map. - The one place I do duplicate: a ship straddling the seam mirrors its
SpriteRenderers for the few frames it takes to cross, or it is visibly cut in half along the camera split. - Parallax background layers are tiled at a size that divides the map exactly, so the stars line up across the seam too, and each seam Camera shifts them by its own offset.
Happy to go deeper on any part (the viewport maths, Screen Space - Camera canvases, physics at the seam). The project is Cosmic Dominion; free demo on Steam on October 29.
r/Unity2D • u/computerguy0323 • 4h ago
Solved/Answered Anyone know why this is happening?
Decompiled a build of Bad Piggies with cheats with AssetRipper, but all the textures are screwed up?
r/Unity2D • u/SKY__PRO • 14h ago
Paid Asset/Tool I made a 32x32 fantasy tileset with 177 assets for 2D games
Made a 32x32 pixel art pack with 177 assets for top-down games. It includes terrain, trees, rivers, bridges, buildings, ruins, and other props.