mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-28 13:54:45 -05:00
version label
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user