gif and eyebrow bug fix
This commit is contained in:
@@ -29,8 +29,9 @@ public class Screenshot : MonoBehaviour
|
||||
string fileName = Application.dataPath + "/../Screenshots/" + string.Format("UmaViewer_{0}", DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss-fff"));
|
||||
byte[] pngShot = ImageConversion.EncodeToPNG(image);
|
||||
Directory.CreateDirectory(Application.dataPath + "/../Screenshots");
|
||||
File.WriteAllBytes(fileName + ".png", pngShot);
|
||||
|
||||
var fullpath = $"{fileName}.png";
|
||||
File.WriteAllBytes(fullpath, pngShot);
|
||||
UmaViewerUI.Instance.ShowMessage($"Screenshot saved: {fullpath}", UIMessageType.Success);
|
||||
Destroy(image);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user