The question is answered, right answer was accepted
What happens when you build a game?
When you are making a project, you have your own assets, you have your own scripts, etc... But when you build your game and look on it's files, the files aren't there.
I assume that they are converted and encrypted in some way, but HOW? You know, like.... What happens? How can the PC interpret those files as the originals? Can a hacker reconfigure my game or something to give him some advantage by using the game files?
Interesting read on the subject here
http://www.alanzucconi.com/2015/09/02/a-practical-tutorial-to-hack-and-protect-unity-games/
Nice! It's very sad that we can't do much to protect our games. I think i am going to hire someone later, i am horrible at encryption....
Answer by tanoshimi · Oct 11, 2016 at 09:32 PM
They're not encrypted; they're compiled to be executed under the Mono Common Language Runtime, just like any .NET application. Yes, a hacker can do nefarious deeds by modifying your game files.
Oh, that's bad... I am really worried about people hacking my games, because i am going to start developing a simple mmo with some friends, and it would be pretty sad to see players hacking my game all the time while i can't do anything to help other than banning them.
Just to be clear - a hacker can modify any game. That's what hackers do. It's nothing specific to Unity, and there's nothing you can do to stop them modifying client code.
That's why any code in which it matters (such as the algorithm for a gambling game, say) would never be stored on the client.