- Home /
 
 
               Question by 
               DaiMangouDev · Mar 05, 2016 at 06:30 PM · 
                c#guieditorwindow  
              
 
              How do I use GUI.BeginCLip() ? There is no documentation on docs.Unity
I am trying to create an area in my editor window where I can pan everything in that area. GUI.BeginClip has two overrides .
 GUI.BeginClip(Rect position)
 
 GUI.BeginCLip(Rect position,Vector2 scrollOffset, Vector2 renderOffset, boolresetOffset )
 
               I don't know how to go about using this because there is no documentation on how to use it.
How do I use this ?
               Comment
              
 
               
              Answer by Deni35 · May 25, 2016 at 04:14 PM
     public static void BeginClip(Rect position, Vector2 scrollOffset, Vector2 renderOffset, bool resetOffset)
     {
         GUIUtility.CheckOnGUI();
         GUIClip.Push(position, scrollOffset, renderOffset, resetOffset);
     }
     public static void EndClip()
     {
         GUIUtility.CheckOnGUI();
         GUIClip.Pop();
     }
 
               Almost like BeginGroup().
Does anyone know the difference?
Your answer
 
             Follow this Question
Related Questions
Can't find proper use of objectfield in a custom editor window (C#) 0 Answers
Distribute terrain in zones 3 Answers
Can EditorWindows dynamically display interfaces of other Editor Windows ? 1 Answer
Can not close editor window not in GUILayout.somemethod in OnGUI method 0 Answers
Multiple Cars not working 1 Answer