Project protection

Question

I recently watched a YouTube video on game engines. It said it was an executable file.The exe can be easily converted back into a project. Can someone tell me how to protect yourself from this?

1 Like

Obfuscate Your Scripts (GDScript)

By default, Godot exports .gd scripts in plain text unless you:

Enable encryption in your export settings (Project > Export > Resources > Encrypt).

Use compiled GDScript bytecode (.gdc) instead of source .gd.

To do this:

In the export preset, enable “Encrypt Packed” and set a key (must be provided in the command line or securely stored in code).

You’ll also want to avoid including the source files in the export.

NOTE: If someone has the encryption key, they can still decrypt the files—so don’t hardcode the key or make it easily guessable.

. Use C# or Native Code

If you’re really concerned about protecting logic, consider writing sensitive code in C# or GDNative (C++), since compiled binaries are harder to reverse-engineer than GDScript.

. Protect Your Assets

Textures, audio, models, etc. are all packed into .pck files, which can be extracted using common tools unless encrypted.

Use “Encrypt .pck” in export settings.

Consider using custom formats or obfuscating filenames to make asset extraction harder.

. License Your Game and Assets

Even with technical protection, having a clear license or copyright notice (and registering your work, if needed) gives you legal ground to act if someone does rip or copy your content.

3 Likes

Thank you!