diff --git a/Scripts/Format/VRMVersion.cs b/Scripts/Format/VRMVersion.cs index 5356632da..cc147cd94 100644 --- a/Scripts/Format/VRMVersion.cs +++ b/Scripts/Format/VRMVersion.cs @@ -4,11 +4,11 @@ namespace VRM public static class VRMVersion { public const int MAJOR = 0; - public const int MINOR = 33; + public const int MINOR = 34; - public const string VERSION = "0.33"; + public const string VERSION = "0.34"; - public const string DecrementMenuName = "VRM/Version(0.33) Decrement"; - public const string IncrementMenuName = "VRM/Version(0.33) Increment"; + public const string DecrementMenuName = "VRM/Version(0.34) Decrement"; + public const string IncrementMenuName = "VRM/Version(0.34) Increment"; } } diff --git a/_RuntimeLoaderSample/Scripts/ViewerUI.cs b/_RuntimeLoaderSample/Scripts/ViewerUI.cs index 10198bc21..e79cacb3d 100644 --- a/_RuntimeLoaderSample/Scripts/ViewerUI.cs +++ b/_RuntimeLoaderSample/Scripts/ViewerUI.cs @@ -9,6 +9,9 @@ namespace VRM public class ViewerUI : MonoBehaviour { #region UI + [SerializeField] + Text m_version; + [SerializeField] Button m_open; @@ -34,9 +37,13 @@ namespace VRM m_enableLipSync = toggles.First(x => x.name == "EnableLipSync"); m_enableAutoBlink = toggles.First(x => x.name == "EnableAutoBlink"); + var texts= GameObject.FindObjectsOfType(); + m_version = texts.First(x => x.name == "Version"); + m_src = GameObject.FindObjectOfType(); m_target = GameObject.FindObjectOfType().gameObject; + } GameObject m_loaded; @@ -73,6 +80,8 @@ namespace VRM private void Start() { + m_version.text = string.Format("VRMViewer {0}.{1}", + VRMVersion.MAJOR, VRMVersion.MINOR); m_open.onClick.AddListener(OnOpenClicked); } diff --git a/_RuntimeLoaderSample/VRMViewer.unity b/_RuntimeLoaderSample/VRMViewer.unity index e601662ba..b5224966c 100644 Binary files a/_RuntimeLoaderSample/VRMViewer.unity and b/_RuntimeLoaderSample/VRMViewer.unity differ