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); }
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); } }
public override void OnEnter() { var clipProxy = (AnimatedClipProxy)animatedClip.Value; Gif.ExportGif(clipProxy.clip, fileName.Value, loop.Value, quality.Value, threadPriority, ExportProgressCallback, ExportCompletedCallback); }