r/godot • • 1d ago

discussion Reverse engineer Unity

Just a random question that came to my mind. Wouldnt it be possible to reverse engineer Unity like others do with games and implement some features from Unity into Godot?

0 Upvotes

12 comments sorted by

20

u/BebopTheCowboy 1d ago

Why exactly would anyone do that. If you want unity there's unity. If you want a feature added you can submit a PR

-6

u/_Princess_Alice 1d ago

It would decrease the workload for basic features drastically. I dont say copy whole unity I just meant it could help to add some features. Theres also the option to optimize those features by hand afterwards. Why invent the wheel new?

6

u/akaiaoimidori 1d ago

They're completely different engines, you can't just copypaste stuff from Unity into Godot. It'd make more sense to figure out what features are supposedly missing that Unity has and think about how they could be implemented in Godot, but you'd have to be more specific.

-1

u/_Princess_Alice 1d ago

Fair enough it makes sense for archtitecture specific features. Just theoretically would it work for features which depend heavily on math like physics stuff or are there still some barriers except units etc?

1

u/Busy-Structure-9136 1d ago

Sure but it's often greater effort than studying the math directly.

1

u/BebopTheCowboy 1d ago

Those tasks are very difficult. I understand that you might look at unity and wish godot had some feature from it or that it was faster but unfortunately it's not something that can just be copied.

-4

u/robbertzzz1 1d ago

Why exactly would anyone do that.

Probably as a way to create and

submit a PR

4

u/JCAPER 1d ago

Likely not worth the effort, because it’s not something you can just copy and paste. And reverse engineering itself has some asterisks.

Godot and Unity code were specifically made for each respectively, a feature made in Unity might use some logic that doesn’t make sense for Godot, and vice versa. It would be like grabbing lettuce from a burger and putting it on a pizza.

Reverse engineering with AI will get you a code that is a guess of how the original code looks like, it doesn’t get you the exact same code as the original. It’s why a lot of these reverse-engineered projects have so many bugs.

At best, I guess reverse engineering could give a dev a better understanding how Unity was able to do it, but I don’t know if it’s worth the effort (and then there’s the whole morality and legality side of things)

3

u/Good-Memory-2264 1d ago

I guess you could do so, but I don’t really see why you’d want this. Just go use unity atp, also if however you do it constitutes somehow violating Unity’s copyright ownership (vibe-coded reverse engineering is a gray area on this rn afaik so it isn’t protected, and also just kind of a crappy thing to do imo) you could get in potential trouble with that company down the road. There’s likely a plugin or an alternative feature already in the engine/asset store that solves whatever issue you’re having that could have been solved easily by a unity feature, and if there isn’t then you can go hop in gdextension or make a fork of the engine and implement an alternative solution yourself that suits the needs of your current project.

3

u/The-Chartreuse-Moose Godot Student 1d ago

Go on then. Let us know how it goes. I'm sure you won't have any major issues.

2

u/CaveJohnson376 Godot Regular 1d ago

...what exactly are you missing from godot that's only available in unity?

and regardless, you can always make a plugin or PR with whatever feature you need. after all, it's a game engine - basically a framework, a collection of libraries tied together to make it easier to make a game. and you can always build new features on top of it.

-4

u/ironlampgames 1d ago

Actually an interesting idea. You could try it out yourself by getting godots code from github and a version of unity and give it to an AI to analyze both and see what it can find. Or maybe you could implement something like Blueprint from Unreal? 🤔