mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Merge pull request #34 from ALEXTANGXIAO/TEngine_v_3.0.0
TEngine v 3.0.0 HybridCLR RunAble
This commit is contained in:
18
Assets/GameScripts/Main/Procedure/Procedure.asmdef
Normal file
18
Assets/GameScripts/Main/Procedure/Procedure.asmdef
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"name": "Procedure",
|
||||||
|
"rootNamespace": "",
|
||||||
|
"references": [
|
||||||
|
"GUID:aa06d4cc755c979489c256c1bcca1dfb",
|
||||||
|
"GUID:13ba8ce62aa80c74598530029cb2d649",
|
||||||
|
"GUID:6055be8ebefd69e48b49212b09b47b2f"
|
||||||
|
],
|
||||||
|
"includePlatforms": [],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": true,
|
||||||
|
"overrideReferences": false,
|
||||||
|
"precompiledReferences": [],
|
||||||
|
"autoReferenced": true,
|
||||||
|
"defineConstraints": [],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": false
|
||||||
|
}
|
7
Assets/GameScripts/Main/Procedure/Procedure.asmdef.meta
Normal file
7
Assets/GameScripts/Main/Procedure/Procedure.asmdef.meta
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4bee17c3950019843ae3a9ae754783bc
|
||||||
|
AssemblyDefinitionImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@@ -41,6 +41,21 @@ namespace GameMain
|
|||||||
m_LoadAssemblyComplete = false;
|
m_LoadAssemblyComplete = false;
|
||||||
m_HotfixAssemblys = new List<Assembly>();
|
m_HotfixAssemblys = new List<Assembly>();
|
||||||
|
|
||||||
|
//AOT Assembly加载原始metadata
|
||||||
|
if (SettingsUtils.HybridCLRCustomGlobalSettings.Enable)
|
||||||
|
{
|
||||||
|
#if !UNITY_EDITOR
|
||||||
|
m_LoadMetadataAssemblyComplete = false;
|
||||||
|
LoadMetadataForAOTAssembly();
|
||||||
|
#else
|
||||||
|
m_LoadMetadataAssemblyComplete = true;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_LoadMetadataAssemblyComplete = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (!NeedLoadDll || GameModule.Resource.playMode == EPlayMode.EditorSimulateMode)
|
if (!NeedLoadDll || GameModule.Resource.playMode == EPlayMode.EditorSimulateMode)
|
||||||
{
|
{
|
||||||
m_MainLogicAssembly = GetMainLogicAssembly();
|
m_MainLogicAssembly = GetMainLogicAssembly();
|
||||||
@@ -74,20 +89,6 @@ namespace GameMain
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SettingsUtils.HybridCLRCustomGlobalSettings.Enable)
|
|
||||||
{
|
|
||||||
#if UNITY_EDITOR
|
|
||||||
m_LoadMetadataAssemblyComplete = false;
|
|
||||||
LoadMetadataForAOTAssembly();
|
|
||||||
#else
|
|
||||||
m_LoadMetadataAssemblyComplete = true;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_LoadMetadataAssemblyComplete = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_LoadAssetCount == 0)
|
if (m_LoadAssetCount == 0)
|
||||||
{
|
{
|
||||||
m_LoadAssemblyComplete = true;
|
m_LoadAssemblyComplete = true;
|
||||||
|
@@ -17,6 +17,6 @@ MonoBehaviour:
|
|||||||
BuildPackage: DefaultPackage
|
BuildPackage: DefaultPackage
|
||||||
CompressOption: 2
|
CompressOption: 2
|
||||||
OutputNameStyle: 1
|
OutputNameStyle: 1
|
||||||
CopyBuildinFileOption: 0
|
CopyBuildinFileOption: 1
|
||||||
CopyBuildinFileTags:
|
CopyBuildinFileTags:
|
||||||
EncyptionClassName: FileOffsetEncryption
|
EncyptionClassName: FileOffsetEncryption
|
||||||
|
@@ -41,10 +41,11 @@ MonoBehaviour:
|
|||||||
m_Enable: 1
|
m_Enable: 1
|
||||||
m_Gitee: 1
|
m_Gitee: 1
|
||||||
HotUpdateAssemblies:
|
HotUpdateAssemblies:
|
||||||
- GameLogic.dll
|
|
||||||
- GameBase.dll
|
- GameBase.dll
|
||||||
|
- GameLogic.dll
|
||||||
- GameProto.dll
|
- GameProto.dll
|
||||||
- BattleCore.Runtime.dll
|
- BattleCore.Runtime.dll
|
||||||
|
- Assembly-CSharp.dll
|
||||||
AOTMetaAssemblies:
|
AOTMetaAssemblies:
|
||||||
- mscorlib.dll
|
- mscorlib.dll
|
||||||
- System.dll
|
- System.dll
|
||||||
|
@@ -347,6 +347,7 @@ namespace TEngine
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
#if UNITY_EDITOR
|
||||||
TypeInfo typeInfo = typeof(AudioSettings).GetTypeInfo();
|
TypeInfo typeInfo = typeof(AudioSettings).GetTypeInfo();
|
||||||
PropertyInfo propertyInfo = typeInfo.GetDeclaredProperty("unityAudioDisabled");
|
PropertyInfo propertyInfo = typeInfo.GetDeclaredProperty("unityAudioDisabled");
|
||||||
_bUnityAudioDisabled = (bool)propertyInfo.GetValue(null);
|
_bUnityAudioDisabled = (bool)propertyInfo.GetValue(null);
|
||||||
@@ -354,6 +355,7 @@ namespace TEngine
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@@ -10,7 +10,7 @@ namespace TEngine
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class DefaultSettingHelper : SettingHelperBase
|
public class DefaultSettingHelper : SettingHelperBase
|
||||||
{
|
{
|
||||||
private const string SettingFileName = "GameFrameworkSetting.dat";
|
private const string SettingFileName = "TEngineSetting.dat";
|
||||||
|
|
||||||
private string m_FilePath = null;
|
private string m_FilePath = null;
|
||||||
private DefaultSetting m_Settings = null;
|
private DefaultSetting m_Settings = null;
|
||||||
|
@@ -30,7 +30,7 @@ public class HybridCLRCustomGlobalSettings
|
|||||||
|
|
||||||
[Header("Auto sync with [HybridCLRGlobalSettings]")]
|
[Header("Auto sync with [HybridCLRGlobalSettings]")]
|
||||||
[Tooltip("You should modify the file form file path [Assets/CustomHybridCLR/Settings/HybridCLRGlobalSettings.asset]")]
|
[Tooltip("You should modify the file form file path [Assets/CustomHybridCLR/Settings/HybridCLRGlobalSettings.asset]")]
|
||||||
public List<string> HotUpdateAssemblies = new List<string>() { "GameLogic.dll","GameBase.dll","GameProto.dll","BattleCore.Runtime.dll"};
|
public List<string> HotUpdateAssemblies = new List<string>() { "GameBase.dll","GameLogic.dll","GameProto.dll","BattleCore.Runtime.dll","Assembly-CSharp.dll"};
|
||||||
|
|
||||||
[Header("Need manual setting!")] public List<string> AOTMetaAssemblies= new List<string>() {"mscorlib.dll","System.dll","System.Core.dll" };
|
[Header("Need manual setting!")] public List<string> AOTMetaAssemblies= new List<string>() {"mscorlib.dll","System.dll","System.Core.dll" };
|
||||||
|
|
||||||
|
@@ -3,7 +3,13 @@
|
|||||||
### 日志记录编辑器下运行
|
### 日志记录编辑器下运行
|
||||||

|

|
||||||
|
|
||||||
### TODO - 安卓环境运行
|
---
|
||||||
|
### Win64位包运行
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
---
|
||||||
|
### 安卓真机运行
|
||||||
|

|
||||||
|
|
||||||
### TODO - IOS环境运行
|
### TODO - IOS环境运行
|
BIN
Books/src/Android-RunSuccessed.png
Normal file
BIN
Books/src/Android-RunSuccessed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 MiB |
BIN
Books/src/Win64-RunSuccessed.png
Normal file
BIN
Books/src/Win64-RunSuccessed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 308 KiB |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.focus-creative-games.hybridclr_unity": "https://gitee.com/focus-creative-games/hybridclr_unity.git",
|
"com.focus-creative-games.hybridclr_unity": "2.1.0",
|
||||||
"com.unity.2d.animation": "5.2.0",
|
"com.unity.2d.animation": "5.2.0",
|
||||||
"com.unity.2d.pixel-perfect": "4.0.1",
|
"com.unity.2d.pixel-perfect": "4.0.1",
|
||||||
"com.unity.2d.psdimporter": "4.3.0",
|
"com.unity.2d.psdimporter": "4.3.0",
|
||||||
@@ -58,4 +58,4 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.focus-creative-games.hybridclr_unity": {
|
"com.focus-creative-games.hybridclr_unity": {
|
||||||
"version": "https://gitee.com/focus-creative-games/hybridclr_unity.git",
|
"version": "2.1.0",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "git",
|
"source": "registry",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"hash": "bf6ae99dadfbc64e3a6f2dc7f63509a5b6b12621"
|
"url": "https://package.openupm.cn"
|
||||||
},
|
},
|
||||||
"com.unity.2d.animation": {
|
"com.unity.2d.animation": {
|
||||||
"version": "5.2.0",
|
"version": "5.2.0",
|
||||||
|
@@ -17,7 +17,6 @@ MonoBehaviour:
|
|||||||
hybridclrRepoURL: https://gitee.com/focus-creative-games/hybridclr
|
hybridclrRepoURL: https://gitee.com/focus-creative-games/hybridclr
|
||||||
il2cppPlusRepoURL: https://gitee.com/focus-creative-games/il2cpp_plus
|
il2cppPlusRepoURL: https://gitee.com/focus-creative-games/il2cpp_plus
|
||||||
hotUpdateAssemblyDefinitions:
|
hotUpdateAssemblyDefinitions:
|
||||||
- {fileID: 5897886265953266890, guid: aa06d4cc755c979489c256c1bcca1dfb, type: 3}
|
|
||||||
- {fileID: 5897886265953266890, guid: 08c3762f54316454ca6b6fbcb22b40e5, type: 3}
|
- {fileID: 5897886265953266890, guid: 08c3762f54316454ca6b6fbcb22b40e5, type: 3}
|
||||||
- {fileID: 5897886265953266890, guid: acd6baa97ba40d3478c29cd9c76ff9e3, type: 3}
|
- {fileID: 5897886265953266890, guid: acd6baa97ba40d3478c29cd9c76ff9e3, type: 3}
|
||||||
- {fileID: 5897886265953266890, guid: a90b2d3377c5e4a4db95cc44fb82045e, type: 3}
|
- {fileID: 5897886265953266890, guid: a90b2d3377c5e4a4db95cc44fb82045e, type: 3}
|
||||||
@@ -29,7 +28,6 @@ MonoBehaviour:
|
|||||||
externalHotUpdateAssembliyDirs: []
|
externalHotUpdateAssembliyDirs: []
|
||||||
strippedAOTDllOutputRootDir: HybridCLRData/AssembliesPostIl2CppStrip
|
strippedAOTDllOutputRootDir: HybridCLRData/AssembliesPostIl2CppStrip
|
||||||
patchAOTAssemblies: []
|
patchAOTAssemblies: []
|
||||||
collectAssetReferenceTypes: 0
|
|
||||||
outputLinkFile: HybridCLRData/Generated/link.xml
|
outputLinkFile: HybridCLRData/Generated/link.xml
|
||||||
outputAOTGenericReferenceFile: HybridCLRData/Generated/AOTGenericReferences.cs
|
outputAOTGenericReferenceFile: HybridCLRData/Generated/AOTGenericReferences.cs
|
||||||
maxGenericReferenceIteration: 10
|
maxGenericReferenceIteration: 10
|
||||||
|
@@ -99,7 +99,7 @@ PlayerSettings:
|
|||||||
bakeCollisionMeshes: 0
|
bakeCollisionMeshes: 0
|
||||||
forceSingleInstance: 0
|
forceSingleInstance: 0
|
||||||
useFlipModelSwapchain: 1
|
useFlipModelSwapchain: 1
|
||||||
resizableWindow: 0
|
resizableWindow: 1
|
||||||
useMacAppStoreValidation: 0
|
useMacAppStoreValidation: 0
|
||||||
macAppStoreCategory: public.app-category.games
|
macAppStoreCategory: public.app-category.games
|
||||||
gpuSkinning: 0
|
gpuSkinning: 0
|
||||||
@@ -110,7 +110,7 @@ PlayerSettings:
|
|||||||
xboxEnableFitness: 0
|
xboxEnableFitness: 0
|
||||||
visibleInBackground: 1
|
visibleInBackground: 1
|
||||||
allowFullscreenSwitch: 1
|
allowFullscreenSwitch: 1
|
||||||
fullscreenMode: 1
|
fullscreenMode: 3
|
||||||
xboxSpeechDB: 0
|
xboxSpeechDB: 0
|
||||||
xboxEnableHeadOrientation: 0
|
xboxEnableHeadOrientation: 0
|
||||||
xboxEnableGuest: 0
|
xboxEnableGuest: 0
|
||||||
@@ -165,7 +165,7 @@ PlayerSettings:
|
|||||||
androidMaxAspectRatio: 2.1
|
androidMaxAspectRatio: 2.1
|
||||||
applicationIdentifier:
|
applicationIdentifier:
|
||||||
Android: com.dinstudio.tengine
|
Android: com.dinstudio.tengine
|
||||||
Standalone: com.DefaultCompany.2DProject
|
Standalone: com.dinstudio.tengine
|
||||||
iPhone: com.dinstudio.tengine
|
iPhone: com.dinstudio.tengine
|
||||||
buildNumber:
|
buildNumber:
|
||||||
Standalone: 0
|
Standalone: 0
|
||||||
@@ -678,6 +678,7 @@ PlayerSettings:
|
|||||||
platformArchitecture: {}
|
platformArchitecture: {}
|
||||||
scriptingBackend:
|
scriptingBackend:
|
||||||
Android: 1
|
Android: 1
|
||||||
|
Standalone: 1
|
||||||
il2cppCompilerConfiguration: {}
|
il2cppCompilerConfiguration: {}
|
||||||
managedStrippingLevel: {}
|
managedStrippingLevel: {}
|
||||||
incrementalIl2cppBuild: {}
|
incrementalIl2cppBuild: {}
|
||||||
@@ -693,6 +694,7 @@ PlayerSettings:
|
|||||||
gcWBarrierValidation: 0
|
gcWBarrierValidation: 0
|
||||||
apiCompatibilityLevelPerPlatform:
|
apiCompatibilityLevelPerPlatform:
|
||||||
Android: 3
|
Android: 3
|
||||||
|
Standalone: 3
|
||||||
m_RenderingPath: 1
|
m_RenderingPath: 1
|
||||||
m_MobileRenderingPath: 1
|
m_MobileRenderingPath: 1
|
||||||
metroPackageName: 2D_BuiltInRenderer
|
metroPackageName: 2D_BuiltInRenderer
|
||||||
|
@@ -30,10 +30,10 @@ EditorUserSettings:
|
|||||||
value: 22424703114646680e0b0227036c5e020204553f256522353e201a3dacf53a31f6fe
|
value: 22424703114646680e0b0227036c5e020204553f256522353e201a3dacf53a31f6fe
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedScenePath-8:
|
RecentlyUsedScenePath-8:
|
||||||
value: 22424703114646680e0b0227036c52111f19563f22213229
|
value: 224247031146467a2c3a092f006c4b151b07563f22213229
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedScenePath-9:
|
RecentlyUsedScenePath-9:
|
||||||
value: 224247031146467a2c3a092f006c4b151b07563f22213229
|
value: 22424703114646680e0b0227036c52111f19563f22213229
|
||||||
flags: 0
|
flags: 0
|
||||||
vcSharedLogLevel:
|
vcSharedLogLevel:
|
||||||
value: 0d5e400f0650
|
value: 0d5e400f0650
|
||||||
|
Reference in New Issue
Block a user