x


Script security

How difficult is it for someone to retrieve the scripts from a unity3d file? I have been asked to create a simulator for a company that makes specialty heavy machinery. Some of the behavior of the machine is proprietary and they don't want it to get into the wrong hands. How hard would someone have to try to disassemble the unity3d file and see the lines of code in my C# scripts?

more ▼

asked Oct 10 '11 at 01:58 PM

avidesk gravatar image

avidesk
53 5 7 9

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Well, the .unity3d (Webplayer that is) file is just a container, which means: It's pretty easy to get the files out of the .unity3d file. When it's "unpacked" it's basically same folder structure than a Standalone Desktop project (with all the Assembly-CSharp.dll etc.).

The DLL themselves are (by default) very easy to disassemble. With a simple .NET Reflector, like ILSpy can make the C# code 100% readable, including variable names, method names, all classes. Everything.

Traditionally there are ways to obfuscate .NET Code, at least when using Visual Studio (the paid versions of course, not express) and it's built in obfuscator which will make the code much harder to read and get it's logic. Dunno if it works with Unity, but you could put all of your important code inside of a *.dll file and obfuscate the .dll inside of Visual Studio and place it in Unity.

Of course, this means: it won't work Unity Webplayer, as webplayers can't use .dlls/plugins (not sure about .NET dlls, correct me if I'm wrong)

more ▼

answered Oct 10 '11 at 05:00 PM

Tseng gravatar image

Tseng
1.5k 6 8 23

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x342
x72

asked: Oct 10 '11 at 01:58 PM

Seen: 769 times

Last Updated: Oct 10 '11 at 05:00 PM