Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by egyptian93 · May 15, 2012 at 04:32 PM ·

Unity Scripts Can be stolen?!

Hi all, A fried discovered that scripts in games made with Unity can be extracted from the games after being build (.exe).

Hes said he uses the files named:

Assembly-CSharp.dll Assembly-UnityScript.dll

and he was right.

Is there any way to over come this problem and protect my game scripts from being stolen after building it?

sorry if my English is bad.

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Lo0NuhtiK · May 15, 2012 at 04:34 PM 1
Share

No. If someone wants it bad enough, they'll get it. If anything can be done to prevent a crack, something can be done to circumvent that. ... then if all else fails and they can't figure out a way through/around that, they could just come s$$anonymous$$l your computer.

...say... what kind of computer you got?

avatar image egyptian93 · May 15, 2012 at 04:55 PM 0
Share

But currently any beginner Can s$$anonymous$$l the scripts. the way is very easy
$$anonymous$$y computer is Pc touch.

avatar image Owen-Reynolds · May 15, 2012 at 05:25 PM 5
Share

If it makes you feel better, nearly every question besides yours is "I got this free Unity script, unsuccessfully tried to change it, and need help figuring it out."

avatar image Drakestar · May 15, 2012 at 05:31 PM 2
Share

If you're worried about people s$$anonymous$$ling your code you haven't made anything worth s$$anonymous$$ling yet ;) At which point you won't care.

avatar image reptilebeats · May 16, 2012 at 05:31 PM 0
Share

i wouldn't worry to much about it, my games script is very long with very little explanation, so even if someone wanted my script they would have to read everything and then read the other scripts to understand what they do as the vast majority of scripts will talk to one another.

also they would still need to do something with it, or else whats the point of having it and im pretty sure if they used it word for word you could sue them or some legal stuff

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
8
Best Answer

Answer by Bunny83 · May 15, 2012 at 04:51 PM

No you can't do much about it. The problem exists with any kind of software. Since the processor have to execute the code it have to be available. Any kind of code can be decompiled to a certain level. Pure machine code can always be viewed in assembler.

However a feature of the scripting language used in Unity (CIL Common Intermediate Language) is, that CIL code can be almost fully decompiled in any .NET / Mono supported language if there's a decompiler for that language. Most decompilers have problems with generator functions (coroutines in Unity) but they can always be viewed in IL. Just download ILSpy and try it yourself ;) Take a look into the UnityEngine and UnityEditor dll, it can help to understand the GUI system for example.

There is the Unity3DObfuscator which can be used to make the code almost unreadable. It just replaces function and variable names with some random characters so it's hard to determine what the code does, but it still can be figured out ;)

This is a general problem with managed code. Java has the same problem. Minecraft for example was never ment to be altered by the community. Some people just decompiled the whole game to be able to integrate the mods. They ultimatively created a set of tools (the MCP) that can decompile and also deobfuscate the code.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image egyptian93 · May 19, 2012 at 12:52 PM 0
Share

Thanks all.

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

13 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

what am I doing wrong 1 Answer

Some scripts don't work when compiling to flash, work fine in editor 1 Answer

"Use of unassigned local variable" error that seems wrong 0 Answers

Game scripts error please help! 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges