예제 #1
0
        private void TakeScreenShot()
        {
            var args = new ScreenShotArgs {
                FrameWidth = HighResWidth, FrameHeight = HighResHeight, Path = path, ClearBackground = isTransparent
            };

            if (myCamera == null)
            {
                myCamera = Camera.main;
            }
            if (myCamera == null)
            {
                myCamera = UnityEngine.Object.FindObjectOfType <Camera>();
            }

            args.Cam = myCamera;

            if (scale > 1)
            {
                Screenshot.TakeScreenShot(args, args.GetScaledArg(scale));
            }
            else
            {
                Screenshot.TakeScreenShot(args);
            }
        }
예제 #2
0
        private void TakeScreenShot()
        {
            var args = new ScreenShotArgs {
                FrameWidth = HighResWidth, FrameHeight = HighResHeight, Path = path, ClearBackground = isTransparent
            };

            if (myCamera == null)
            {
                myCamera = Camera.main;
            }
            if (myCamera == null)
            {
                myCamera = Object.FindObjectOfType <Camera>();
            }

            args.Cam = myCamera;

            Timelapse = new Timelapse(waitTime, times, args.GetScaledArg(scale));
        }