Fixed screenshots using the wrong camera.

Fixed screenshot file paths displaying incorrectly.
Added a discord link.
This commit is contained in:
Katboi01
2023-11-05 19:45:32 +01:00
parent 2915e0408a
commit 0897daf89c
6 changed files with 221 additions and 555 deletions
+3 -2
View File
@@ -39,8 +39,9 @@ namespace uGIF
while(bytes == null) yield return new WaitForEndOfFrame();
string fileName = Application.dataPath + "/../Screenshots/" + string.Format("UmaViewer_{0}", DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss-fff"));
Directory.CreateDirectory(Application.dataPath + "/../Screenshots");
var fullpath = $"{fileName}.gif";
File.WriteAllBytes(fullpath, bytes);
//fixes "/../" in path
var fullpath = Path.GetFullPath($"{fileName}.gif");
File.WriteAllBytes(fullpath, bytes);
bytes = null;
UmaViewerUI.Instance.ShowMessage($"GIF saved: {fullpath}", UIMessageType.Success);
Frames.Clear();