- Home /
The question is answered, right answer was accepted
Can I read the UnityEngine Library?
Am I allowed to?
I want to be able to see the code they used for a lot of the Vector3 methods they added during 3.x up to current 3.4.2
Thanks in advance.
Answer by Bunny83 · Dec 07, 2011 at 02:14 AM
Like all managed libraries you can reflect the code with any reflector. However Unity have a lot functions that are based on native code (since Unity is mainly written in C++) and therefore the managed dll contains just wrapper objects / functions to external functions which you can't view.
Luckily most of the Vector3 stuff is pure managed code. I'm not sure what functions you referring to. It feels like all of them have been there even before 3.0, but maybe i've missed it ;)
I always use ILSpy which can view IL or decompile to C#.
The two dlls can be found here:
/Editor/Data/Managed/UnityEngine.dll
/Editor/Data/Managed/UnityEditor.dll
I'm sorry I must not have realised some functions were already present and was confused somewhat.
Anyway this is great, thanks so much for showing me this program.
Answer by milali · Dec 07, 2011 at 12:35 AM
The only code you can see is what they expose. so f12 the vector3 object and you'll get the accessors but that's about it. :(
Follow this Question
Related Questions
"using UnityEditor;" throws an error? 1 Answer
Calling C# Namespace from Boo 1 Answer
UnityEngine could not be found? 7 Answers
How to only use namespace if it exists? 0 Answers
What parts of the MSDN Library can be imported into Unity? 1 Answer