Comments (9)
发个函数案例呗
我该如何定位到具体函数呢?
改工程源码,在刚才报错的地方加个打印信息,然后用工程里面[build_for_unity.bat]重新编译一下
看看是哪一个函数导致的报错
from injectfix.
安卓注入失败, Web 平台正常
from injectfix.
Unity 版本 2021.2.18f1
from injectfix.
经过测试 static IEnumerable hotfix 返回值 长度大于5680 就会出现这个错误,小于则不会
from injectfix.
发个函数案例呗
from injectfix.
发个函数案例呗
static IEnumerable hotfix
{
get
{
List tList = new List();
Type[] cSharp = Assembly.Load("Assembly-CSharp").GetTypes();
tList.AddRange(cSharp);
Type[] cSharpFirst = Assembly.Load("Assembly-CSharp-firstpass").GetTypes();
tList.AddRange(cSharpFirst);
return tList;
}
}
Assembly-CSharp 定位不到具体函数 ,空项目测试 2W 个长度也不会有问题。
from injectfix.
发个函数案例呗
我该如何定位到具体函数呢?
from injectfix.
发个函数案例呗
我该如何定位到具体函数呢?
改工程源码,在刚才报错的地方加个打印信息,然后用工程里面[build_for_unity.bat]重新编译一下
from injectfix.
正确写法
[DllImport("__Internal")]
private static extern void XX();
错误写法
private static extern void XX();
虽然能编译通过但是会注入失败
from injectfix.
Related Issues (20)
- Webgl使用问题。 HOT 2
- 催更 HOT 3
- [Bug] 文档错误Doc/quick_start.md
- 包含 as 的函数 Inject 不成功,不能对函数热更 HOT 1
- 为何不能直接使用await Task.Delay呢 HOT 1
- 如何定位到Injectfix的文件代码位置 HOT 1
- Unity 2021.3.26 无法热更 async/await HOT 5
- Unity3d 2022.3.7f1c1 IFixToolKit/IFix.exe.mdb doesn't match image HOT 1
- 对UI事件函数制作补丁,在load补丁的时候会报错
- unity2019.4.17f 安卓打包注入失败 HOT 2
- InjectFix的使用范围建议? HOT 2
- InvalidProgramException: no closure wrapper for CallbackSignal`2+Action`2[Unit,System.Int32,Unit,System.Int32]
- 是否支持WebGL平台 HOT 3
- 自动化打包流程安卓生成patch文件失败
- 在unity 2022.3.14f1版本建立空工程,打包APK无法Inject。大佬可以看下问题么。
- [Unity2022.3.16]在Unity2022下Inject成功,但是在dll中没有看到IFix相关内容,热更新失效
- 如果通过 patch 文件判断是否有方法调用了处于不同程序集的 base 方法
- Tuple 数组作为参数或返回值时,不生效,但是List 可以
- 打包到客户端System.Exception: assembly may be not injected yet, cat find IFix.ILFixInterfaceBridge, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from injectfix.