[增加]1. 增加补充元数据列表
This commit is contained in:
parent
1e9a91fe68
commit
37ba19deb0
|
@ -10,10 +10,12 @@ namespace GameFrameX.GlobalConfig.Editor
|
|||
{
|
||||
private SerializedProperty m_HostServerUrl = null;
|
||||
private SerializedProperty m_Content = null;
|
||||
private SerializedProperty m_AOTCodeList = null;
|
||||
private SerializedProperty m_CheckAppVersionUrl = null;
|
||||
private SerializedProperty m_CheckResourceVersionUrl = null;
|
||||
private GUIContent m_HostServerUrlGUIContent = new GUIContent("主机服务地址");
|
||||
private GUIContent m_ContentGUIContent = new GUIContent("附加内容");
|
||||
private GUIContent m_ContentGUIAOTCodeList = new GUIContent("补充程序集列表");
|
||||
private GUIContent m_CheckAppVersionUrlGUIContent = new GUIContent("检测App版本地址接口");
|
||||
private GUIContent m_CheckResourceVersionUrlGUIContent = new GUIContent("检测资源版本地址接口");
|
||||
|
||||
|
@ -23,12 +25,13 @@ namespace GameFrameX.GlobalConfig.Editor
|
|||
|
||||
serializedObject.Update();
|
||||
|
||||
EditorGUI.BeginDisabledGroup(EditorApplication.isPlayingOrWillChangePlaymode);
|
||||
EditorGUI.BeginDisabledGroup(EditorApplication.isPlayingOrWillChangePlaymode & Application.isPlaying);
|
||||
{
|
||||
EditorGUILayout.PropertyField(m_HostServerUrl, m_HostServerUrlGUIContent);
|
||||
EditorGUILayout.PropertyField(m_CheckAppVersionUrl, m_CheckAppVersionUrlGUIContent);
|
||||
EditorGUILayout.PropertyField(m_CheckResourceVersionUrl, m_CheckResourceVersionUrlGUIContent);
|
||||
EditorGUILayout.PropertyField(m_Content, m_ContentGUIContent);
|
||||
EditorGUILayout.PropertyField(m_AOTCodeList, m_ContentGUIAOTCodeList, GUILayout.Height(100));
|
||||
EditorGUILayout.PropertyField(m_Content, m_ContentGUIContent, GUILayout.Height(120));
|
||||
}
|
||||
EditorGUI.EndDisabledGroup();
|
||||
|
||||
|
@ -49,6 +52,7 @@ namespace GameFrameX.GlobalConfig.Editor
|
|||
m_CheckAppVersionUrl = serializedObject.FindProperty("m_CheckAppVersionUrl");
|
||||
m_HostServerUrl = serializedObject.FindProperty("m_HostServerUrl");
|
||||
m_Content = serializedObject.FindProperty("m_Content");
|
||||
m_AOTCodeList = serializedObject.FindProperty("m_AOTCodeList");
|
||||
m_CheckResourceVersionUrl = serializedObject.FindProperty("m_CheckResourceVersionUrl");
|
||||
|
||||
RefreshTypeNames();
|
||||
|
|
|
@ -38,6 +38,20 @@ namespace GameFrameX.GlobalConfig.Runtime
|
|||
set => m_CheckResourceVersionUrl = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// AOT代码列表
|
||||
/// </summary>
|
||||
[SerializeField] private string m_AOTCodeList = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// AOT代码列表
|
||||
/// </summary>
|
||||
public string AOTCodeList
|
||||
{
|
||||
get => m_AOTCodeList;
|
||||
set => m_AOTCodeList = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 附加内容
|
||||
/// </summary>
|
||||
|
|
|
@ -15,6 +15,11 @@ namespace GameFrameX.GlobalConfig.Runtime
|
|||
/// </summary>
|
||||
public string CheckResourceVersionUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// AOT代码列表
|
||||
/// </summary>
|
||||
public string AOTCodeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 扩展内容
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in New Issue