SaveScreenShotWithBorder() public static method

public static SaveScreenShotWithBorder ( Rect r, Color borderColor, string name ) : string
r UnityEngine.Rect
borderColor Color
name string
return string
Esempio n. 1
0
 public static void ScreenShotComponent(Rect contentRect, UnityEngine.Object target)
 {
     ScreenShots.s_TakeComponentScreenshot = false;
     contentRect.yMax += 2f;
     contentRect.xMin += 1f;
     ScreenShots.SaveScreenShotWithBorder(contentRect, ScreenShots.kWindowBorderColor, target.GetType().Name + "Inspector");
 }
Esempio n. 2
0
        public static void ScreenshotToolbar()
        {
            GUIView mouseOverView = ScreenShots.GetMouseOverView();

            if (mouseOverView != null)
            {
                string name           = ScreenShots.GetGUIViewName(mouseOverView) + "Toolbar";
                Rect   screenPosition = mouseOverView.screenPosition;
                screenPosition.y     += 19f;
                screenPosition.height = 16f;
                screenPosition.width -= 2f;
                ScreenShots.SaveScreenShotWithBorder(screenPosition, ScreenShots.kToolbarBorderColor, name);
            }
        }