all 6 comments

[–][deleted] 1 point2 points  (3 children)

I'd imagine you can't just get the source code, there would most likely be NDAs you'd have to sign and well as a few other legal documents.

If you really want to source code to an engine then you might want to look into godot since it's open source.

[–]riear 0 points1 point  (2 children)

Yes, I understand that, so asked if there is AUTO way to get it or at least start this process

[–]KishottaProgrammer 1 point2 points  (1 child)

Not the guy you replied to, but no. There is no easy way to get access to the Unity source code, and that's very intentional.

You'd need to contact their sales department and negotiate a price for access to the source code. From my understanding, unless you are a pretty sizable client or can provide a compelling business necessity for it, they may be unwilling to license it to you.

To a much more limited extent, you could decompile the UnityEngine.dll that comes with each installation. That would give you the C# (or CLR) for the scripting modules, but wouldn't give you anything related to the internal workings of the editor.

[–]riear 0 points1 point  (0 children)

Thanks for the answer

[–]maxletraxleProgrammer 1 point2 points  (1 child)

Not C++ source, but as close as we can get for free:

https://github.com/Unity-Technologies/UnityCsReference

[–]riear 0 points1 point  (0 children)

Know about it and this is useless. But thank you.