gif and eyebrow bug fix
This commit is contained in:
@@ -9326,6 +9326,11 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: -0.0009918213
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5533725806274544247, guid: 14d034506760e5049a12fd1cf057a8b3,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 150
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 14d034506760e5049a12fd1cf057a8b3, type: 3}
|
||||
--- !u!1 &357312446
|
||||
@@ -15783,7 +15788,8 @@ MonoBehaviour:
|
||||
m_text: 'Quality: 10 (default: 10)'
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 309c10a796fa90746889302436dac032, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 1876532955194943090, guid: 309c10a796fa90746889302436dac032,
|
||||
type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -15882,7 +15888,7 @@ RectTransform:
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 20, y: 20}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
@@ -28973,10 +28979,10 @@ RectTransform:
|
||||
m_Father: {fileID: 411520097}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 140, y: -15}
|
||||
m_SizeDelta: {x: 110, y: 30}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!114 &994710209
|
||||
MonoBehaviour:
|
||||
@@ -34911,9 +34917,9 @@ RectTransform:
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -17, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &1255010895
|
||||
MonoBehaviour:
|
||||
@@ -38480,7 +38486,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1389187104
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -41038,10 +41044,10 @@ RectTransform:
|
||||
m_Father: {fileID: 411520097}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 265, y: -15}
|
||||
m_SizeDelta: {x: 110, y: 30}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!1 &1503272426
|
||||
GameObject:
|
||||
@@ -41211,7 +41217,7 @@ RectTransform:
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 20, y: 20}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
@@ -42735,7 +42741,7 @@ MonoBehaviour:
|
||||
GifTransparent: {fileID: 2094069102}
|
||||
GifQuality: {fileID: 864436236}
|
||||
GifQualityLabel: {fileID: 542685198}
|
||||
GifSlider: {fileID: 0}
|
||||
GifSlider: {fileID: 864436236}
|
||||
GifButton: {fileID: 964213177}
|
||||
VMDButton: {fileID: 668484488}
|
||||
UpdateDBButton: {fileID: 1516377151}
|
||||
@@ -44156,9 +44162,9 @@ RectTransform:
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -17, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &1636363196
|
||||
MonoBehaviour:
|
||||
@@ -47358,10 +47364,10 @@ RectTransform:
|
||||
m_Father: {fileID: 411520097}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 15, y: -15}
|
||||
m_SizeDelta: {x: 110, y: 30}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!1 &1716374325
|
||||
GameObject:
|
||||
@@ -58158,10 +58164,10 @@ RectTransform:
|
||||
m_Father: {fileID: 411520097}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 450, y: -15}
|
||||
m_SizeDelta: {x: 120, y: 30}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2101350875
|
||||
MonoBehaviour:
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,9 +39,10 @@ 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");
|
||||
File.WriteAllBytes(fileName + ".gif", bytes);
|
||||
var fullpath = $"{fileName}.gif";
|
||||
File.WriteAllBytes(fullpath, bytes);
|
||||
bytes = null;
|
||||
Debug.Log("Gif saved!");
|
||||
UmaViewerUI.Instance.ShowMessage($"GIF saved: {fullpath}", UIMessageType.Success);
|
||||
Frames.Clear();
|
||||
stop = false;
|
||||
UmaViewerUI.Instance.GifButton.GetComponentInChildren<TMPro.TextMeshProUGUI>().text = "Record GIF";
|
||||
|
||||
Reference in New Issue
Block a user