mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-07 11:28:35 -05:00
Show & check exporter version
This commit is contained in:
@@ -79,6 +79,14 @@ namespace VRM
|
||||
|
||||
so.Update();
|
||||
|
||||
GUI.enabled = false;
|
||||
EditorGUILayout.PropertyField(m_propMap["ExporterVersion"]);
|
||||
if (VRMVersion.IsNewer(m_propMap["ExporterVersion"].stringValue))
|
||||
{
|
||||
EditorGUILayout.HelpBox("Check UniVRM new version. https://github.com/dwango/UniVRM/releases", MessageType.Warning);
|
||||
}
|
||||
GUI.enabled = true;
|
||||
|
||||
m_foldoutInfo = EditorGUILayout.Foldout(m_foldoutInfo, "Information");
|
||||
if (m_foldoutInfo)
|
||||
{
|
||||
|
||||
@@ -5,6 +5,9 @@ namespace VRM
|
||||
{
|
||||
public class VRMMetaObject : ScriptableObject
|
||||
{
|
||||
[SerializeField]
|
||||
public string ExporterVersion;
|
||||
|
||||
#region Info
|
||||
[SerializeField]
|
||||
public string Title;
|
||||
|
||||
Reference in New Issue
Block a user