- Home /
What does the code behind BeginHorizontal() and EndHorizontal() look like or is presumed to look like ?
Hi , I am trying to figure out what the code behind BeginHorizontal() looks like. I'm trying to create a "BeginDragable()" to be used in my editor windows.
so I figured that if i could understand the syntax behind BeginHorizontal() then i could more easily create my function.
Answer by VesuvianPrime · Jan 31, 2015 at 03:24 AM
Try using ILSpy or .NET Reflector to take a look at the UnityEditor DLL: http://i.gyazo.com/cf3fa3ecc5a0099d3df6919c0727a971.png
Unfortunately I think you're going to have a lousy time reverse-engineering some of the editor stack code.
you are right about that, the classes are too long and complex. x_x It is not extremely difficult to understand the syntax but there are internal classes and methods scattered all round the class. It is like trying to untangle miles on string .