x


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.

more ▼

asked Dec 07 '11 at 12:32 AM

Rabwin gravatar image

Rabwin
389 11 15 27

(comments are locked)
10|3000 characters needed characters left

2 answers: sort newest

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
more ▼

answered Dec 07 '11 at 02:14 AM

Bunny83 gravatar image

Bunny83
46.8k 12 50 210

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.

Dec 09 '11 at 01:23 AM Rabwin
(comments are locked)
10|3000 characters needed characters left

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. :(

more ▼

answered Dec 07 '11 at 12:35 AM

milali gravatar image

milali
156 7 12 13

Bah alright :\

I'll just mark this as answer.

Dec 07 '11 at 12:38 AM Rabwin
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x76
x67
x21

asked: Dec 07 '11 at 12:32 AM

Seen: 975 times

Last Updated: Dec 09 '11 at 01:23 AM