version label

This commit is contained in:
ousttrue
2018-04-18 23:19:00 +09:00
parent e21959fc34
commit 03f9475a38
3 changed files with 13 additions and 4 deletions

View File

@@ -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";
}
}

View File

@@ -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<Text>();
m_version = texts.First(x => x.name == "Version");
m_src = GameObject.FindObjectOfType<HumanPoseTransfer>();
m_target = GameObject.FindObjectOfType<TargetMover>().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);
}

Binary file not shown.