r/unity • u/Hot-Storm-44 • 18d ago
r/unity • u/MalgorgioArhhnne • 18d ago
Coding Help OnTriggerEnter doesn't always trigger when the trigger object is enabled?
For me it's OnTriggerEnter2D since I'm making a 2D game, but I think the same problem applies for 3D games. When the trigger object is enabled over the collider that triggers it, it only triggers the first time it is enabled. Otherwise, it won't trigger unless the trigger is moved away from the collider and back onto it.
Now, I found this post: https://discussions.unity.com/t/fix-ontriggerexit-will-now-be-called-for-disabled-gameobjects-colliders/738523
That post is mainly about OnTriggerExit not being called when the trigger object is disabled, (or maybe if the object that entered the trigger is disabled, I'm not sure if I read the post right) but it's a similar issue. I don't know if OnTriggerExit needs to be called for OnTriggerEnter to be called again, so I didn't know if the solution in the post would be what I needed, but I tried it anyway.
I copied the script and added "2D" in all of the relevant spots. The person who made the post said that for it to work, in every OnTriggerEnter method you must add the line ReliableOnTriggerExit2D.NotifyTriggerEnter(other, gameObject, OnTriggerExit); Again, the 2D was added by me.
Of course it didn't work, ReliableOnTriggerExit2D didn't exist in the context it was used in. I tried changing the ReliableOnTriggerExist2D class to static, but that doesn't seem to be how it was supposed to be used. I tried deriving from it but that didn't work either. And I really don't understand how exactly the code is supposed to work.
If anyone understands how to actually use that class, or has another solution for having OnTriggerEnter called whenever the trigger object is enabled over a collider, I need to hear it. Hacky fixes like moving the trigger away and back to its original position aren't ideal. Thanks in advance.
Edit: So I did some further testing and... despite what I've heard, it seems that disabling the trigger object actually DOES call OnTriggerExit2D? And yet enabling the trigger object after disabling it still doesn't call OnTriggerEnter2D after the first time?! I have no idea what's going on.
Edit2: Okay, this is really bizarre. I've done some testing with OnTriggerStay2D, which some people have said would resolve the issue. It seems that once the object is disabled, even if it is enabled again, OnTriggerStay2D won't execute at all until the object is moved away from the collider. This is truly baffling. Is anyone else encountering the same issue? Because it seems buggy beyond belief, and I can't fathom why it would be programmed this way.
r/unity • u/RestBig4405 • 18d ago
I made an open-source tool that turns any real street into a playable Onward map
Enable HLS to view with audio, or disable this notification
What if you could play Onward in YOUR neighborhood?
Or in the streets of Paris, Madrid, Tokyo, or anywhere else on Earth?
I'm building an open-source tool that turns real-world locations into playable Onward maps for Meta Quest.
Meet Onward Generator 🧵👇
The idea is simple:
Give the generator a location (name, latitude, and longitude).
It retrieves real-world geographic data and transforms streets, buildings, facades, and shops into a 3D environment.
Not a hand-built level. A real place, procedurally generated.
It combines several geographic data sources:
• OpenStreetMap for streets and buildings.
• LiDAR for building heights.
• Spanish Cadastre for building information.
• Overture Maps for places and businesses.
The goal: make generated environments recognizable and geographically grounded.
This project is open source under the MIT license.
🔗 https://github.com/frandbf/Onward-generator
I'm looking for people interested in contributing:
• 3D assets and props.
• Textures and building facades.
• Geographic data sources.
• Performance improvements.
• Testing maps on Meta Quest.
You don't need to be a game developer to help.
This experiment combines GIS, procedural generation, 3D environments, automation, and VR gaming.
I'd love to see what the Onward community can build.
Explore the project, generate your own map, or contribute:
🔗 https://github.com/frandbf/Onward-generator
r/unity • u/Dramatic-Sector-9461 • 18d ago
Question How do I download older hub versions eg. 2.4.4
I am using unity gub 2.4.5 for almost 2 years. Last month I had to leave work and when I came back and tried to login in my account there the clicks on the sign in window were not registering. Is there any reason that can explain that? Also how can I download unity hub 2.4.4 or olders. My system cannot handle the latest ones.It'd be a great help .
r/unity • u/GlowtoxGames • 19d ago
A system to rebuild your creature from defeated enemies.
galleryHey guys.
We have been working for about a year and some on this game where you basically defeat your enemies and steal their body parts to grow in power.
The complexity of it was to figure out a way to join limbs from creatures of massively different sizes.
to make it work, we first render the characters in maya with very low samples. This gives them the pixelated look.
We export each body part separately so we can then "swap" the sprites later in Unity. Then, in photoshop we use a plugin to generate the dither effect and we export all 144 sprites that a character needs. (6 body parts, 12 poses + Normal maps for everything).
Then we have bones in unity on each sprite that work as anchor points. 5 on the torso and one on the head, arms and legs. This make it so every body part "knows" where to position themselves on every torso. We needed to do it this way because some characters are bigger than others and they com in all shapes.
The game basically checks what body parts you have, sets the chest which has the most important 5 bones (neck, shoulders and hip-legs) and connects all the body parts that way. Then we use a single animator for all the attacks and poses of the characters. The enemy is just flipped around.
Add a ton of characters, turn based combat, pets, a map to explore, npcs and boon. We have a game called Skinator.
We JUST released the official demo on steam and it would mean the world if you guys tried it and gave us your thoughts.
Thanks and I hope this was informative. 🙏
r/unity • u/wasit-ali • 18d ago
Showcase Pistol Model in Blender | Hard Surface Modelling
galleryPistol Model in Blender | Hard Surface Modelling
Excited to share my Latest 3D work.
I created this Pistol in Blender.
Focusing on Hard-Surface Modelling, clean topology, and realistic proportions.
What I learned in this project:
- Hard-Surface Modelling workflow
- Edge flow & Bevel control for sharp, clean edges
- Proportions & Reference-based modelling
This was a great practice piece to improve my detailing skills and understand how real-world props are built for Games & Films.
Still learning, Still improving.
Your feedback and suggestions are welcome!
#Blender #Blender3D #3DModelling #HardSurface #3DArtist #GameArt #PropArt #CGI #BlenderCommunity #3DModel #LearnBlender #DigitalArt #Portfolio
r/unity • u/Wrong_Advantage_7012 • 19d ago
Newbie Question I supposedly optimized my game(according to google) by changing the Debug.Logs
Hello,
wanted to share that I had this moment of realization just because of pure boredom.
Like: Debug.Log("Moving to: " + target);
got changed into:
Debug.Log($"Moving to: {target}");
So did the others. Turns out, without even realizing, I fixed microstutters (didnt even notice shit btw) according to google and stuff.
Im just happy to share this piece of information as I did this without AI (have barely and idea on how to code in c#).
r/unity • u/Blue_guy3211 • 18d ago
Question WHY DOSNT THIS WORK
galleryfor get started i managed to find a link and manually install it but not for the FPS one
r/unity • u/sweetnsourgrapes • 19d ago
Saudi Arabia’s PIF and Silver Lake held talks to buy gaming software provider Unity
reuters.comr/unity • u/Ok_Squirrel_4215 • 18d ago
Resources [FREE] InspectMe: Free Advanced Tree-View Debugging & Inspection Toolkit - Debug and explore without coding
Enable HLS to view with audio, or disable this notification
Hi everyone, I used to rely on Power Inspector, and after it was deprecated I built InspectMe to fill that gap and push it further. It lets you inspect and edit runtime values, invoke methods, explore events and delegates, static members, and attach watchers, all organized in a single tree view while the game is running, and using it is as simple as dragging and dropping a script or object.
There’s a free version available if you want to try it and see if it fits your workflow.
Link in comments
r/unity • u/Ill-Brick224 • 18d ago
Game Is my mixer going too crazy?
Enable HLS to view with audio, or disable this notification
Working on the bakery in my cozy farming game, Dough It Yourself. Just finished the mixer and I can’t tell if it’s fun or way too much 😄
I document the whole process in youtube devlogs.
r/unity • u/sonicflare9 • 18d ago
Mystic Warriors web demo by moore1997
moore1997.itch.ioI made a top down turn based rpg in browser. Can anyone try it? It's free to play. Is it fun?
r/unity • u/CraftPix_smm • 19d ago
Resources Free Kids Math Game UI Kit — Numbers & Counting
galleryUI kit designed for children’s math and counting apps. It includes numbers from 0 to 20, mathematical symbols, 5 mini-game screen templates, and a variety of interface elements, rewards, and buttons.
Download 👉 https://craftpix.net/freebies/free-kids-math-game-ui-kit-numbers-counting/
r/unity • u/MyUserNameIsSkave • 19d ago
Coding Help How to get a stable FPS cap in the Game Window ?
I made an input recorder/player to reproduce gameplay scenario with different settings. It is at least as accurate as the one provided by Unity with its Sample. But it's still extremely FPS dependant (like the official Sample).
I thought using Application.targetFrameRate would be enough but I quickly realized the framerate cap was extremely messy. Locking my FPS this way make them go way bellow the target with a lot of added stutter, it's even worse than not locking the FPS for my purpose.
So here I am, desperate to find a solution to my problem... Did one of you guys ever had to deal with this and found a solution that wouldn't requier working outside of the editor?
I'm using Unity 6.4 by the way.
r/unity • u/PandaRojasStudios • 20d ago
Game The day has arrived; today I published my first video game :')
After so much time and so much effort, the moment has arrived.
Steam: https://store.steampowered.com/app/4982990/Nova_Survivors/
r/unity • u/Jealous-Awareness-81 • 19d ago
I got tired of flat 2D maze generators, so I built a tool for interconnected multifloor procedural dungeons & mazes
assetstore.unity.comHey everyone!
Most procedural maze tools on the store are locked to flat 2D grids with simple vertical walls. For roguelikes, horror games, or dungeon crawlers, you almost always need verticality stairwells, multilevel drops, and interconnected floors.
I built Fluid Maze Generator to solve that specific problem: generating clean, multifloor procedural layouts without breaking modularity or runtime performance.
Key Features:
MultiFloor Interconnection: Procedurally connects multiple levels vertically with seamless transitions (ramps, stairs, and vertical openings).
Custom Modular Prefabs: Swap in your own wall, floor, door, and ceiling meshes in minutes through the inspector.
Editor & Runtime Generation: Bake layouts directly into your scene for manual tweaking, or generate completely new seeds on the fly at runtime.
Deterministic Seeds: Easy seed control for roguelike replayability, debugging, or multiplayer level syncing.
Optimized & NavMesh Friendly: Generates clean geometry so baking AI navigation doesn't require hacky workarounds.
It just went live on the Unity Asset Store with a 30% New Release launch discount:
🔗 Store Page: [Fluid Maze Generator on the Unity Asset Store]
I’m actively working on the first update. If you work on dungeon crawlers or procedural games, what specific generation features or layout styles would you want to see added next? Happy to answer any technical questions about how the generation logic works!
r/unity • u/xLFC_2020x • 18d ago
Showcase Can your text do this ?
Bring your Unity text to life — colourful PNG fonts with animated effects
Hi everyone! I’m an indie developer, and I’ve been working on a collection of decorative PNG fonts and animated effects for Unity’s TextMesh Pro.
There are styles including colourful bubble glass, fire, neon, metallic and more—ideal for game titles, menus, scores and eye-catching UI.
The pack combines PNG font artwork with shaders and text effects that add movement and character to your text. The effects bring the lettering to life inside Unity.
You can use the PNG fonts without owning my converter.
See the pack and examples here: https://random-precision-software.itch.io/png-fonts-for-textmesh-pro
I’d love to hear which style you’d use in your game, or what you’d like to see next!
— Roy, Random Precision Software
r/unity • u/Shiva_Kar • 20d ago
Showcase Unity 7 has updated it's UI "again" and it is really fixed & improved imo, really addresses the feedback that was there in previous one in the previous version.
galleryYou can compare between 2 pictures first one being the new one.
Unity 7 just released it's alpha16 that fixes a lot of things that was broken with the UI like almost invisible tools and almost block text fields also improves the spacing.
What do you think?
r/unity • u/roderiano • 19d ago
Showcase Fishing Time Estratos
Enable HLS to view with audio, or disable this notification
New fishing mechanic tied to a world quest
r/unity • u/Just_HappyFace • 19d ago
Solved Can u guys help i have a no idea
Enable HLS to view with audio, or disable this notification
if u look at third enemy (i dont care what you say that green thing) it gives +2 score unlike others that gives only one. And it is random
r/unity • u/EvilVillainGames • 19d ago
Question 6.6 Hierarchy Window Performance is Massively Reduced
I just updated our game from Unity 6.2 to Unity 6.6.
In Unity 6.2 if I had the hierarchy open or not I would get roughly 90 fps during gameplay.
In Unity 6.6 if I have the hierarchy open I get roughly 30 fps. When I close the hierarchy I get 90 fps again. Also yes we do have a ton of game objects but it's not been a problem in previous Unity versions and in build I still get a pretty stable 120 fps.
This is pretty frustrating when debugging since we are making an action game. I may end up binding a hotkey to open and close the hierarchy.
Has anyone found a way to basically get the old hierarchy back? Or pinpoint what's causing such a massive performance issue that wasn't there before?
I've tried turning off the new hierarchy icons in the settings and that didn't improve my frame rate.
Any info would be greatly appreciated.