mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
TE6 打飞机Demo
TE6 打飞机Demo
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using TEngine;
|
||||
using UnityEditor;
|
||||
|
||||
public static class TEngineSettingsProvider
|
||||
{
|
||||
[MenuItem("TEngine/Settings/TEngine UpdateSettings", priority = -1)]
|
||||
public static void OpenSettings() => SettingsService.OpenProjectSettings("Project/TEngine/UpdateSettings");
|
||||
|
||||
private const string SettingsPath = "Project/TEngine/UpdateSettings";
|
||||
|
||||
[SettingsProvider]
|
||||
public static SettingsProvider CreateMySettingsProvider()
|
||||
{
|
||||
return new SettingsProvider(SettingsPath, SettingsScope.Project)
|
||||
{
|
||||
label = "TEngine/UpdateSettings",
|
||||
guiHandler = (searchContext) =>
|
||||
{
|
||||
var settings = Settings.UpdateSetting;
|
||||
var serializedObject = new SerializedObject(settings);
|
||||
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("projectName"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("HotUpdateAssemblies"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("AOTMetaAssemblies"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("LogicMainDllName"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("AssemblyTextAssetExtension"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("AssemblyTextAssetPath"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("UpdateStyle"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("ResDownLoadPath"));
|
||||
EditorGUILayout.PropertyField(serializedObject.FindProperty("FallbackResDownLoadPath"));
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
},
|
||||
keywords = new[] { "TEngine", "Settings", "Custom" }
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user