- Home /
How can i hide the c#/js code from my asset on the market?
How can i hide the c#/js code from my asset on the market?
Can i compile it into a dll?
As a note, it's better not to hide the code unless there's some compelling reason - it contains undistributable-unless-compiled code, or it's so complex that it's more confusing than helpful to include it. Generally anyone looking for assets will love the fact that they can keep it up to date themselves, or alter it to fit their specific needs.
Answer by DaveA · Oct 26, 2012 at 04:06 AM
Get an obfuscator from the asset store. Yes you can make a DLL. C# can be built into a .NET assembly, but you can also make a C-style DLL. The latter can only be used with Pro.
Dave, there's only the one obfuscator on the asset store (that I could see), it seems to be little used/supported .... surely there is a common package kicking around for this common need? Which one were you thinking of?
Cheers
There was a great discussion on a Question here last year, and of course I cannot find it. The general opinion was license agreements should protect your source code, but if you made your source code unavailable then people would actually be turned away from the product.
EDIT : I think it was this one : http://answers.unity3d.com/questions/10879/is-it-possible-to-hackdecode-asset-files.html
Here are some links I did find while trying to find that question again =[
http://forum.unity3d.com/threads/97749-How-to-distribute-Unity-packages-without-revealing-sourcecode
http://forum.unity3d.com/threads/95982-How-to-package-source-code-in-a-safe-way-for-Asset-Store
http://answers.unity3d.com/questions/168117/how-protected-is-source-code-in-a-published-build.html
But regardless of the discussion about if customers are put off by it or not, some developers NEED to hide their code on the asset store (they have their reasons). Is there a solution for this yet?
Here is a good one. You'll probably need the Enterprise license however ($400) but worth it (no royalty fees). http://www.ssware.com/cryptoobfuscator/obfuscator-net.htm
Your answer
![](https://koobas.hobune.stream/wayback/20220613082904im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How to access different animations of the interaction object component (Final IK)? 0 Answers
Upon re-import, 3D objects in my Unity scene displace inital location? 0 Answers
How to reference variable in ScriptableObject(.asset files)? 1 Answer
Dialoguer - Anybody used it? 0 Answers