- Home /
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.
Answer by Bunny83 · Dec 13, 2013 at 07:30 PM
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.
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 :)
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 / $$anonymous$$ono system.