Ejemplo n.º 1
0
 public override void OnInspectorGUI()
 {
     if (Application.isPlaying)
     {
         if (GUILayout.Button("Capture"))
         {
             CaptureUtility utility = target as CaptureUtility;
             utility.Capture(utility.GetUniqueCaptureName());
         }
     }
     else
     {
         GUILayout.Label("Run application to capture screenshots.");
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Captures the specified area of the control or whats underneath
 /// the control. If the argument flag client is true, only the client
 /// area of the control is captured, otherwise the entire control is
 /// captured. If the argument flag under is true, the capture area under
 /// the control is captured, otherwise the specified area on the control
 /// is captured.
 /// </summary>
 /// <returns>bitmap image of the control or whats underneath the control</returns>
 public Bitmap Capture()
 {
     return(CaptureUtility.Capture(this));
 }