Viewing the Vector3 class?

Is there a way to view to view the Vector3 or 2 class script? I want a custom class that does something similar to it.

i'm using this plugin but i cant control my interstitial ad, it shows all the time , how to make it close on ad close, please help :(

1 Answer

1

Download ILSpy and open the UnityEngine.dll (UnityInstallFolder/Editor/Data/Managed/).

Btw Vector3 is not a class but a struct which makes it a value type and not a referencetype.

Thought it was so, but wasn't sure.

Or just drag and drop the assembly file into monodevelop, then view the references.

To be honest I sometimes used monodevelops assembly a browser but first it's quite slow, second it often can crash monodevelop, some classes can't be decompiled. I would always prefer ILSpy :)

I'll have to check it out, thanks for the link :D

It can also decompile any .NET assembly to IL, C# or VB.NET. IEnumerators are usually not supported by the C# and VB decompiler since the C# compiler does some goto-tricks in IL which aren't possible in plain C#. IL does always work (since that's basically the assembly-language of .NET), but it's a bit hard to read. However it helps to get a better understanding of the whole .NET / Mono system.