[Add] Hot Reload
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#if ENABLE_MONO && (DEVELOPMENT_BUILD || UNITY_EDITOR)
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using SingularityGroup.HotReload.DTO;
|
||||
|
||||
namespace SingularityGroup.HotReload.Burst {
|
||||
public static class JobHotReloadUtility {
|
||||
public static void HotReloadBurstCompiledJobs(SUnityJob jobData, Type proxyJobType) {
|
||||
JobPatchUtility.PatchBurstCompiledJobs(jobData, proxyJobType, unityMajorVersion:
|
||||
#if UNITY_2022_2_OR_NEWER
|
||||
2022
|
||||
#elif UNITY_2021_3_OR_NEWER
|
||||
2021
|
||||
#elif UNITY_2020_3_OR_NEWER
|
||||
2020
|
||||
#elif UNITY_2019_4_OR_NEWER
|
||||
2019
|
||||
#else
|
||||
2018
|
||||
#endif
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b9980b40e3ff447b94e71de238a37fb7
|
||||
timeCreated: 1676825622
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 254358
|
||||
packageName: Hot Reload | Edit Code Without Compiling
|
||||
packageVersion: 1.13.17
|
||||
assetPath: Packages/com.singularitygroup.hotreload/Runtime/Burst/JobHotReloadUtility.cs
|
||||
uploadId: 870414
|
||||
Reference in New Issue
Block a user