hi everyone i was just wandering how i stop people from being able to read my c# script after uploading it to the asset store
You cannot.
Best you can do is to make it hard to read, but that won’t stop someone who is determined.
One can even extract your code from a compiled EXE file.
The code has to be readable by the computer, and if it can be run in your computer, it can be de-compiled by a savvy user.
Why would you even want to do that? I don’t think I’d buy anything from the asset store that didn’t include source code.
People have done a great job explaining why there’ll always be a way to retrieve the source code, especially with the CIL. People have also point out that AssetStore’s users like and want to have a copy of the source code, so those are not very good reason to lock your code away.
That being said, you may help yourself by compiling to a .exe or .dll and by using the ObfuscateAssemblyAttribute. Finally, roll your compiled program through Telerik’s Eazfuscator. The whole process should keep most people off.
There is an Obfuscator plugin in the Asset Store. It will make it harder to read. Like ‘bullet proof’ there is no such thing. But ‘good enough’ there is. So if you want to scare off the casual hacker, obfuscate it. Cuts down on the number of folks able/willing to rip you off. Never 100%. But better than nothing if you really want it.