Example #1
0
 /// <summary>
 /// 开始截图(带AR背景),等待两帧后使用ScreenShotTool.GetScreenShot获取结果
 /// </summary>
 /// <param name="rect">截图区域</param>
 /// <param name="path">所截图片保存路劲,无需保存时给null</param>
 public static void StartScreenShotAR(Rect rect, LayerMask layerMask, string path = null)
 {
     _ScreenShotTool._Rect      = rect;
     _ScreenShotTool._LayerMask = layerMask;
     _ScreenShotTool._Path      = path;
     _ScreenShotTool.StartCoroutine("ScreenShotAR");
 }
Example #2
0
 /// <summary>
 /// 开始截图(带AR背景),等待两帧后使用ScreenShotTool.GetScreenShot获取结果
 /// </summary>
 /// <param name="rect">截图区域</param>
 /// <param name="path">所截图片保存路劲,无需保存时给null</param>
 public static void StartScreenShotAR(Rect rect, LayerMask layerMask, string path = null)
 {
     if (_ScreenShotTool.kinectImage == null)
     {
         throw new System.Exception("kinectImage为空不能显示AR背景");
     }
     _ScreenShotTool._Rect      = rect;
     _ScreenShotTool._LayerMask = layerMask;
     _ScreenShotTool._Path      = path;
     _ScreenShotTool.StartCoroutine("ScreenShotAR");
 }