Fix some VMD export issues and some other changes (#100)
* Bug fix, improved UI layout and live vocals * Bug Fixes, New Live Compatibility * Android build support * Update build.yml * Fix issues with the new version of the game * bug fix * add config button * Improve performance * Sync fork * bug fix, new uma compatibility * Add /UserSettings to gitignore * bug fix, add live characher shader control * fix compilation errors * fix compilation errors 2 * fix the live lighting calculation logic * bug fix, add editor layout settings to gitignore * bug fix, add editor layout settings to gitignore * Add time scale keys for live * live camera bug fix * add live stage control, optimize live performance * fix build error * add uma head custom * Add tiptoes rotation for VMD export * Add a save path prompt when exporting VMD files. * Remove the debug code for body dragging. * Remove unused physics components to improve performance. * Fix incorrect VMD exports for loop animations Fix VMD motion errors during repeated recordings Fix ghost bone persistence after multiple recordings * Revert "Remove unused physics components to improve performance." This reverts commit 7a1ae7f7d13d05380f9215b653d1c6719303a458. * Reapply "Remove unused physics components to improve performance." This reverts commit fe4c05f6942198864ca06e25f17a11440961040d. * fix https://github.com/katboi01/UmaViewer/issues/95 * live timescale bug fix * bug fix for skin and tail textures in live * bug fix for skin and tail textures in live (2) * fix https://github.com/katboi01/UmaViewer/issues/108 * message ui bug fix
This commit is contained in:
@@ -42,7 +42,7 @@ public class UmaViewerUI : MonoBehaviour
|
||||
public ScrollRect SceneList;
|
||||
public PageManager ScenePageCtrl;
|
||||
public ScrollRect MessageScrollRect;
|
||||
public Text MessageText;
|
||||
public TextMeshProUGUI MessageText;
|
||||
public PoseManager PoseManager;
|
||||
public HandleManager HandleManager;
|
||||
|
||||
@@ -625,7 +625,11 @@ public class UmaViewerUI : MonoBehaviour
|
||||
var list = new List<UmaDatabaseEntry>();
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith(UmaDatabaseController.BodyPath) && a.Name.Contains(chara.Id.ToString())));
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith(UmaDatabaseController.HeadPath) && a.Name.Contains(chara.Id.ToString())));
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith("3d/chara/tail")));
|
||||
var tail_path = getCharaTailPath(chara);
|
||||
if (!string.IsNullOrEmpty(tail_path))
|
||||
{
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith(tail_path)));
|
||||
}
|
||||
list.Add(Main.AbList["3d/animator/drivenkeylocator"]);
|
||||
list.Add(Main.AbList[$"3d/motion/event/body/chara/chr{achara.Id}_00/anm_eve_chr{achara.Id}_00_idle01_loop"]);
|
||||
|
||||
@@ -681,7 +685,11 @@ public class UmaViewerUI : MonoBehaviour
|
||||
var list = new List<UmaDatabaseEntry>();
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith(UmaDatabaseController.BodyPath) && a.Name.Contains(chara.Id.ToString())));
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith(UmaDatabaseController.HeadPath) && a.Name.Contains(chara.Id.ToString())));
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith("3d/chara/tail")));
|
||||
var tail_path = getCharaTailPath(chara);
|
||||
if (!string.IsNullOrEmpty(tail_path))
|
||||
{
|
||||
list.AddRange(Main.AbChara.Where(a => a.Name.StartsWith(tail_path)));
|
||||
}
|
||||
list.Add(Main.AbList["3d/animator/drivenkeylocator"]);
|
||||
var motion_path = $"3d/motion/event/body/chara/chr{chara.Id}_00/anm_eve_chr{chara.Id}_00_idle01_loop";
|
||||
if (!chara.IsMob && !ModelSettings.IsHeadFix && Main.AbList.TryGetValue(motion_path, out var motion_entry))
|
||||
@@ -891,6 +899,28 @@ public class UmaViewerUI : MonoBehaviour
|
||||
return (entry == null) ? id.ToString() : entry.GetName();
|
||||
}
|
||||
|
||||
public string getCharaTailPath(CharaEntry chara)
|
||||
{
|
||||
int tailId = 0;
|
||||
if (chara.IsMob)
|
||||
{
|
||||
tailId = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
var charaData = UmaDatabaseController.ReadCharaData(chara);
|
||||
tailId = Convert.ToInt32(charaData["tail_model_id"]);
|
||||
}
|
||||
if (tailId <= 0)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
var tailName = $"tail{tailId.ToString().PadLeft(4, '0')}_00";
|
||||
var tailPath = $"3d/chara/tail/{tailName}/";
|
||||
var tailPfb = tailPath + $"pfb_{tailName}";
|
||||
return tailPfb;
|
||||
}
|
||||
|
||||
public static string GetCostumeName(string costumeId, string defaultname)
|
||||
{
|
||||
switch (costumeId)
|
||||
@@ -996,6 +1026,7 @@ public class UmaViewerUI : MonoBehaviour
|
||||
buttonText.text = "Saving";
|
||||
recorder.SaveVMD(container.name, Config.Instance.VmdKeyReductionLevel);
|
||||
buttonText.text = "Record VMD";
|
||||
ShowMessage($"VMD is saved in {Path.GetFullPath(Application.dataPath + UnityHumanoidVMDRecorder.FileSavePath)}", UIMessageType.Success);
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1092,6 +1123,7 @@ public class UmaViewerUI : MonoBehaviour
|
||||
_ => $"{msg}\n",
|
||||
};
|
||||
MessageScrollRect.gameObject.SetActive(type != UIMessageType.Close);
|
||||
LayoutRebuilder.ForceRebuildLayoutImmediate(MessageScrollRect.content);
|
||||
MessageScrollRect.verticalNormalizedPosition = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user