public static SaveScreenShotWithBorder ( |
||
r | ||
borderColor | Color | |
name | string | |
Résultat | string |
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"); }
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); } }