• 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
Question by michidk · Nov 26, 2015 at 12:04 PM · unity 5documentationlegalstatementdecompile

Decompiling Unity

Hey,

is it legal to decompile Unity, for looking up things, the documentation doesn't cover?

Is there an official statement of Unity concerning this topic?

Thanks!

Comment
Bunny83
bunnynsnake

People who like this

2 Show 0
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

2 Replies

  • Sort: 
avatar image
Best Answer

Answer by Bunny83 · Nov 26, 2015 at 01:24 PM

The ability to decompile / convert managed IL code into any other .NET language is a feature of the CIL itself. Even Visual studio does partially decompile referenced assemblies. MattRix even uploaded the code on a github repo with the permission of Aras. Keep in mind that the code is still copyrighted by UnityTechnologies. Decompiling is ok as long as you don't copy things and claim it's yours ^^. If you plan to extract code from there to use it in your own projects you really should contact the Unity support for getting permissions.

This might not be a good advice but as long as you keep things for yourself, nobody can blame you. However whenever you release something you should be clear about your sources and licenses.

I've also just found this question which still doesn't have an answer (so i'm going to write one ^^). I will tell him the same thing. If you want to use something from those assemblies you really should contact the support.

ps: I have ILSpy running almost all the time in the background (thinking about to adding it to the autostart :P).

Comment
michidk
bunnynsnake

People who like this

2 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 mgear · Mar 24, 2018 at 02:09 AM 0
Share

Update for 2018, since that unitydecompiled is now closed, "The C# part of the Unity engine and editor source code. May be used for reference purposes only." https://github.com/Unity-Technologies/UnityCsReference

avatar image

Answer by btft · Nov 26, 2015 at 01:18 PM

Decompiling might be considered unethical, even if found legal. What I would suggest is to use reflector, such as ILSpy to look up assemblies and understand code not covered by docs.

Comment
bunnynsnake

People who like this

1 Show 3 · 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 michidk · Nov 26, 2015 at 01:31 PM 0
Share

i personally don't like ILSpy, i would use dotPeek by JetBrains

avatar image Bunny83 michidk · Nov 26, 2015 at 01:52 PM 0
Share

Most people seem to prefer ILSpy, but it's probably just a matter of choice. I'm not a fan of dotPeek due to it's closed source and strict license, even though dotPeek might has some features which are be missing in ILSpy. ILSpy is open source released under a MIT license and only uses other MIT or LGPL licensed libraries.

avatar image btft · Nov 26, 2015 at 01:40 PM 0
Share

Haven't used it yet but as everyday user of R# I'd give it a try. :)

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

41 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 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 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 avatar image avatar image

Related Questions

Can I use decompiled code from UnityEditor.dll in my Game 1 Answer

Decompililing Unity Assembly-CSharp IEnumerator 1 Answer

Player bounds optimization and code review 0 Answers

unity documentation pdf 1 Answer

Random.Range changed in Unity 5? 2 Answers


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