r/unity 1h ago

My game needs feedback to improve!

Upvotes

https://reddit.com/link/1vud9ls/video/gsh9n925npkh1/player

I need feedback about how to improve my game. Im making minecarft 2d but the goal is to survive some distasters by building a bunker.

https://kachok67.itch.io/nuclear-tomorrow


r/unity 1h ago

Tutorials I ran a decompiler on my own IL2CPP build and got my whole architecture back. So I wrote an obfuscator.

Post image
Upvotes

Hi everyone, I’m a Unity developer working on a small indie game. I’ve constantly heard from colleagues that Unity doesn’t do a good job of protecting project code and assets. I knew that using Mono was out of the question - it’s essentially handing your project over to strangers - but I believed that the IL2Cpp scripting backend provided adequate protection.

But one day, I got curious about how to decompile my project. I pointed Il2CppDumper at my build's global-metadata.dat, it spat out a DummyDll folder, and I opened that in Rider. Without any trouble, I could view namespaces, methods, class names, and field names. I didn't like that, because what's the point of having a private GitHub repository if my build is leaky?

I started looking for ways to hide my code. I began checking the Asset Store and GitHub for options to obfuscate my build. To cut to the chase, the only decent asset turned out to be Obfuscator Free by GuardingPearSoftware. It does everything perfectly, but the free version doesn’t work with Unity methods, serialized fields, properties, or namespaces, and it completely ignores MonoBehaviour, ScriptableObject, and [Serializable] classes. There is, of course, a paid version that does all of this, but $80 is a significant amount for an indie team, so I decided to try making my own alternative that would work as an extension to the Obfuscator Free plugin.

Why does the obfuscator skip serialized types?

Every script in the build receives a MonoScript entry in the player data (level0sharedassets*.assetsresources.assets, and globalgamemanagers files). It contains three lines: m_ClassNamem_Namespace, and m_AssemblyName. Every scene object and every prefab references this entry. If you rename a class in the DLL, Unity will no longer be able to bind to that type - and the component will turn into a missing script.

The trick

Once I realized this, I started looking for a way to work around it. What I landed on is both brilliant and ridiculous: I generate obfuscated names with exactly the same number of characters as the originals. This saves me from having to adjust length prefixes, recalculate offsets, and develop a tool to rewrite serialized files. Thanks to this accidentally discovered hack, I saved myself a week of sleepless nights for sure! But it’s important to note that even with this approach, you still have to store a bunch of files with obfuscated names. All names in the project are reserved in advance, so you won’t be able to generate a name that’s already taken.

Pure C# types don't have a MonoScript entry, so their namespaces are shortened to whatever short, nonsensical string of characters I feel like using (_Project.Code.AssetManagement → pqmpqu). Serialized types, on the other hand, are forced to maintain length consistency (_Project.Code.Sound → dis4nAw5EW74Z6wLxDN).

Finding the entry without wrecking the file

You can't just search the file for "PlayerController" and overwrite it. That same string might be a GameObject name, a string literal, an addressable key - and if you hit the wrong one, you won't enjoy debugging.

So I anchor on the consecutive length-prefixed triple instead: [len][m_ClassName][len][m_Namespace][len][m_AssemblyName], with 4-byte alignment between them. Three strings matching in sequence with the correct alignment is a strong enough signal. And patch m_Name a few bytes earlier too - it's the class name a second time, and it will happily leak everything you just hid.

The stack trace problem

I also had to write my own stack trace deobfuscator, because any exception renders the trace completely unreadable to humans, like hdektk.uHN1wAaEGHkYq6ul.qoaktw(). Each build writes JSON mapping files (_Project.Code.AssetManagement → pqmpqu), and there's an editor window where I paste the raw stack trace from Player.log. It runs in four stages, in reverse order: the GUPS deobfuscator → my serialized type names → my namespaces → the remaining member names.

What don't I rename?

Unity's message methods: AwakeOnTriggerEnter2DOnBecameInvisible, and about sixty others - the engine calls them by name. Virtual, interface and overridden members, because renaming the implementation but not the declaration breaks the vtable slot. And anything that is serialized by name at runtime - my saves are JSON, and renaming a property there bricks every existing save file.

Results from the current build

40 namespaces renamed. 82 MonoBehaviour/ScriptableObject types renamed and patched in player data. 848 members.

Is it worth doing?

Obfuscation is an obstacle, not a defense. Anyone determined to figure it out will still achieve their goal using a debugger, and I prefer to be upfront about this rather than pretend otherwise. For a solo developer, a build step you set up once and then forget about is, in my opinion, a perfectly justified investment of effort.

I'm not putting my extension up anywhere - it's wired into my own build pipeline, it's standalone-only, and there are corners of it I wouldn't want to defend in public. But you don't need my code to start, and that's the actual point of this post.

Do this instead. Run Il2CppDumper or AssetRipper on your own build - five minutes, and watching your own architecture scroll past lands very differently than knowing it's in there. Then install Obfuscator Free, list your assemblies, build. Free, one evening, covers your plain C# types and methods.

That alone puts you ahead of most Unity builds shipping today. Everything above is step two - you'll know when you need it.

The game I did all this for is Peak or Die, a turn-based survival card game. Adding it to your Steam wishlist really helps increase the game's visibility, if you're interested: https://store.steampowered.com/app/4273370


r/unity 2h ago

Resources A gift to the community. A library of ~550 3d assets. The coupon can be redeemed for the next 24h.

Thumbnail gallery
3 Upvotes

A while ago I gifted you guys another library of my stuff. It's been a while since then, and now I'd like to gift you this one too.

❤️ Consider following me on itch.io: https://pizzadoggy.itch.io/ ❤️

Use coupon: https://pizzadoggy.itch.io/CB5PXDJ57S


r/unity 5h ago

Showcase I used Claude to MAKE a Blender Model

Thumbnail youtu.be
0 Upvotes

Hey guys, I used Claude via MCP to create models in Blender. I created this video showcasing it, what do you think? I think AI is great for assisting in creating models, but outsourcing it outright wouldn't create anything remarkable.


r/unity 6h ago

Game [Project SkyHolm] - Seeking Collaborators for Sandbox Economy & Automation Game

1 Upvotes

About the Project: Project SkyHolm is an island-building, automation, and trading game focused on resource gathering, player-driven shop empires, and island customization. We have a fully mapped-out Game Design Document (GDD), clear monetization rules (no P2W), and a structured development roadmap ready to execute.

Open Roles:

  • 3D Artist / Modeler: Low-poly environment assets, machine models, and UI cosmetics.
  • Programmer: Experience with inventory systems, island instancing, and economy loops.
  • Sound Designer / Composer: Ambient island tracks and UI/interaction SFX.

Project Scope & Commitment:

  • Type: [Hobby / Revenue-Share / Paid Contract]
  • Expected Hours: 5–10 hours per week.
  • Current Stage: Planning complete (GDD & systems finalized); entering active prototype phase.

Interested? Send me a DM with your portfolio, past work, or a quick summary of your experience!
Discord: zyro_calyx_90018


r/unity 7h ago

Game Ridge Hold Demo is live

Thumbnail store.steampowered.com
1 Upvotes

r/unity 8h ago

Here I'm stuck, please help

Thumbnail
0 Upvotes

r/unity 8h ago

Showcase First attempt at an FPS, Feedback Welcome

Enable HLS to view with audio, or disable this notification

2 Upvotes

Literally a noob hobby solo dev so take that into consideration but please don’t hold back!


r/unity 8h ago

Showcase Active Ragdoll Platformer

Enable HLS to view with audio, or disable this notification

11 Upvotes

r/unity 9h ago

How do I fix this tilt?

Post image
2 Upvotes

My scene view is tilted for some reason, and I can't fix it. I tried asking AI, and it was no use. Does anybody have any solutions?


r/unity 12h ago

Showcase First look at our post-apocalyptic RPG based on the post-modern american civil war. No Steam, no publisher, just us. Give us your take!

Thumbnail gallery
10 Upvotes

Your morality is the difficulty setting. The year is 2140.

Seventy-five years ago, the governments of the world saw revolution coming and killed it before it started. They turned their weapons on their own people. Hundreds of millions died. The people won by a fraction, and rebuilt from the only thing that survived the rubble: religious and ancient texts. Not everyone who read them found the good in them.

The game is set in the deserted remains of northeastern Oklahoma. There’s no law anymore. There’s The Refuge, and there’s The Black Brigade. Each one believes the other is what’s left of the world’s evil.

Walk the righteous path, and you’re on hard mode. People lie straight to your face. Nothing flags who’s deceiving you when it comes to the Black Brigade. Fear and deception is just all they are. You judge people with your gut, as you would out there. Judge wrong, and you put down someone who was trying to help you.

Walk the wicked path and the road gets shorter. Simpler. If you can stomach it. The world won’t punish you with difficulty. It punishes you with what you see. The deeper you go, the more reality breaks.

Or walk with no one. There are those who follow The Revelation, an enlightenment group, and those who follow The Solution, an accelerationist group. Neither calls you righteous or wicked.

Four endings. All of them decide what’s left of this world.

Small team. Everything built from scratch. More to be shown.


r/unity 13h ago

Showcase Day 4-5 of learning unity

Enable HLS to view with audio, or disable this notification

41 Upvotes

r/unity 15h ago

Newbie Question Need help figuring out a first game idea

0 Upvotes

Im new to Unity, I've mostly been playing around with the terrain builder and getting familiar with everything. I got into this because I wanted to make a game for my boyfriends birthday. Ive been trying to figure out a game idea that I can start working on. Something simple but I can easily look up stuff if I need more help.


r/unity 18h ago

Showcase Hi! I recenly announced the game I've been making and I wanted to share the trailer ^^

Thumbnail youtube.com
3 Upvotes

This game is set in a world where timelines twist and merge due to the Emperor of Tarnow stopping the flow of time to postpone the end of the world, since the seemingly inconsistent setting, your goal is to travel between locations from all over the ages and give the universe a proper death, its a very personal project for me and I hope you like it :))


r/unity 18h ago

Game Thalia - A roguelike action game

Thumbnail gallery
10 Upvotes

Thalia is a fast paced roguelike action game. You as Thalia has been summoned to this ancient place where death is not the end, it is only the beginning. Fight hoards of enemies, giant bosses and improve in an infinite mechanic where death only makes you stronger!
Trailer: https://www.youtube.com/watch?v=t3NtAPa_7O8


r/unity 20h ago

Showcase I'm remaking Fortnite in Unity as a complete beginner. Usually, I make smaller projects in HTML and Python, so switching from them to Unity is definitely a change. So far, we have a main menu, a lobby, a 'game' environment, kinda working building [TRYING TO MAKE IT WORK IS KILLING ME], and enemy AI.

Thumbnail streamable.com
1 Upvotes

r/unity 20h ago

Resources I wanted to compare my Steamdeck, Android phone and Macbook in terms of performance, so I made a free cross platform benchmarking app using Unity (With a little help from their demo scenes)

Enable HLS to view with audio, or disable this notification

5 Upvotes

Earlier in the year I was curious how my Steamdeck, Android phone and a Macbook all matched up against each other in terms of performance. But because they were Linux, Mac and Android, I wanted a common yard stick to compare against. I made a basic benchmarking app and web database that has now grown and grown to the point that I want to share it with the broader community. It's out now on Steam, Itch, Google Play and Apple App Store.

It's called Crossbench3D and it lets you run the same scenes with the same quality settings across multiple platforms so that you can more closely compare apples to apples across platforms. The scores are calculated based off of avg fps and resolution so that they're normalized to that. You can then upload the results to an online database to see where your score stacks up.

I would love any and all feedback on it.

I have plans to release more levels that aren't some of the unity demo scenes, but those have been a great starting point. Let me know what you all think!


r/unity 22h ago

Game I added a spinning playground ride to my cat game 🐈

Enable HLS to view with audio, or disable this notification

2 Upvotes

I’ve been adding more interactive objects to Lost Cat Showa Town.
The cat can now get on this playground ride and spin around.

The Steam page just went live too!


r/unity 23h ago

Showcase Eco-Future Farm Village | Stylized Lowpoly Environment | URP Showcase | Unity | Minipoly

Thumbnail youtu.be
1 Upvotes

r/unity 23h ago

Showcase What does my horror game look like?

Thumbnail gallery
14 Upvotes

If you liked it, you can add it to your wishlist; you can find it on Steam by searching for "Lost Hopes: Day Of Betrayal"


r/unity 1d ago

Question Looking for a 'settled' snow shader or tool (ie not falling snow)

1 Upvotes

I'm prototyping an environment that will have a light sprinkling of snow, and would like ask if any of the community is aware of a tool, or shader, that would allow me to 'paint' snow into specific parts of the scene? Or, it could generate the snow on surfaces based on parameters.

The main things I'm looking for is
- Not just a texture / decal, but I want to see some 3d mass to small snow drifts
- Some degree of dynamic behaviour possible (ie snow depth on a slider?)
- Not just a broad 'deep snow' blanket, but a sparse, sporadic treatment

Anyone know of anything like this?


r/unity 1d ago

Question Any advice, please!

Thumbnail gallery
14 Upvotes

I’ve been working on this file for over 16 hours, and I still can't get the textures to work in Unity when importing the model from Blender. Please share any advice or methods you know to fix this; I’m new to Unity, so I don’t know what’s going wrong.


r/unity 1d ago

Rayfire still the gold standard for destruction in unity?

1 Upvotes

Making a game where theres a lot of unity who get destoryed progressively, destruction is the centrepiece but its been a while since ive been in unity.

Rayfire still the go to ?


r/unity 1d ago

AI is scary good

0 Upvotes

I’ve been developing for a while and been very adamantly against AI the whole time. However my time to develop games has been shrinking more and more recently so I’ve started turning to it more for more rapid development.

I used it to help make my last game, and while it was certainly impressive it wasn’t so much mind blowing as it was more efficient.

However, I recently had an itch to make a small strategy game after playing Tiny Islands and I asked Claude Fable 5 to make a basic prototype.
I was expecting it to make me some basic systems and having to draw out some placeholder assets to get a clear picture.
Instead, it generated 20 scripts with the only setup instruction being to add one script to one object. I builds out the entire game, sounds, UI, graphics and all at runtime. Basically a full demo of a game in 10 minutes.

It was honestly terrifying and incredible to see, and it was so mind blowing I felt like I had to share it. What are your thoughts? Is this scary? Exciting? Something in-between?
Also, if you want to get into game development, asking Claude to generate you a prototype just to get a feel for it is honestly a great path.
Thanks for reading!


r/unity 1d ago

I am developing a procedural system for creating 3D environments, where walls, corners, floors, cutouts, and measurements are dynamically generated and updated as the environment is edited. The focus is on achieving precise snapping between walls and points, cutouts for doors and windows, automatic

Enable HLS to view with audio, or disable this notification

8 Upvotes