コード例 #1
0
        public void ExportGIF()
        {
            if (isExportingGif)
            {
                NativeUI.Alert("Exporting In Progress", "Please wait until the current GIF exporting is completed.");
                return;
            }
            else if (isUploadingGif)
            {
                NativeUI.Alert("Uploading In Progress", "Please wait until the GIF uploading is completed.");
                return;
            }

            isExportingGif = true;
            Gif.ExportGif(recordedClip, gifFilename, loop, quality, exportThreadPriority, OnGifExportProgress, OnGifExportCompleted);
        }
コード例 #2
0
    void ExportGIF()
    {
        if (AnimClip != null)
        {
            Gif.ExportGif(AnimClip,
                          ScreenshotSharer.Instance.gifFilename,
                          ScreenshotSharer.Instance.gifLoop,
                          ScreenshotSharer.Instance.gifQuality,
                          ScreenshotSharer.Instance.gifThreadPriority,
                          OnGifExportProgress,
                          OnGifExportCompleted);

            isExportingGif = true;
            ShowGifExportingProgress(0);
        }
    }
コード例 #3
0
ファイル: Gif_ExportGif.cs プロジェクト: MaxEstry/NAB
        public override void OnEnter()
        {
            var clipProxy = (AnimatedClipProxy)animatedClip.Value;

            Gif.ExportGif(clipProxy.clip, fileName.Value, loop.Value, quality.Value, threadPriority, ExportProgressCallback, ExportCompletedCallback);
        }