InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

InjectFix is a hot-fix solution library for Unity

Results 142 InjectFix issues
Sort by recently updated
recently updated
newest added

1. 把IFixEditor类里的AutoInjectAssemblys删掉不用; 2. 创建一个新类用于Build Player的时候回调,继承IPostBuildPlayerScriptDLLs,实现OnPostBuildPlayerScriptDLLs方法; 3. 将Inject的目录定位到:ProjectFolder/Temp/StagingArea/Data/Managed,对该目录下的程序集进行Inject; 4. 通过上述步骤成功解决打包真机注入失败的问题; 具体代码如下: ``` /* * Tencent is pleased to support the open source community by making InjectFix available. * Copyright (C) 2019...

1. 用class实现的AsyncMethodBuilder,会导致IL2cpp构建错误 2. 单assembly产生AwaitUnsafeOnCompleted超过128时,IL2cpp构建错误

像unity 2022.3升级以后真机inject失效了,如果没有真机验证过挺危险的

在运行时load patch的时候报错: System.Exception: cat not find id field: ClassName-FunctionName0, for CustomAsync FunctionName() 返回值为继承自CustomYieldInstruction的类CustomAsync。函数FunctionName是override父类的,非新增。此外类内另一个传入List的函数,load patch也会报相同错误。类内其他函数热更没问题。因此基本锁定问题是和CustomAsync类有关。 我查看了issue [#70](https://github.com/Tencent/InjectFix/issues/70),尝试在CustomAsync和ClassName前都添加了[IFix.CustomBridge],仍然报相同的错。

Exception: cat not find id field: OpenURLOnClick-OnClick0, for Void OnClick() IFix.Core.PatchManager.getMapId (System.Collections.Generic.List`1[T] idMapArray, System.Reflection.MethodBase method) (at :0) IFix.Core.PatchManager.Load (System.IO.Stream stream, System.Boolean checkNew) (at :0) MYCSPatchManager.DoPatch () (at :0) UnityEngine.Debug:LogException(Exception) MYLogger:LogException(Exception)...

源码 int methodId = externMethods.Count; if (methodId > ushort.MaxValue) { throw new OverflowException("too many extern methods"); } 热更函数上限六万五可以修改嘛

The commit 9d8e950 is an uncomplete fix due to lack consideration of array and generic instance type fields in a generic base class. This commit will get it fixed. Can...

This PR fixes #379 . **By using, referring or merging this pull request, you understand and agree that the copyright or patent license of this pull request and its code...