We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报错: Patch Error:System.Exception: can not load generic method [LoadAsset] of UnityEngine.AssetBundle
补丁中的方法 [Patch] private void TestABLoad(AssetBundle ab){ GameObject prefab=ab.LoadAsset 《GameObject》 ("testPrefab"); }
The text was updated successfully, but these errors were encountered:
泛型打不出来,只有《》代替了
Sorry, something went wrong.
可以用泛型,但如果你之前没用过这个泛型,unity不会编译进发布包。这时不是不能用,而是根本没有。
OK,我去试试,然后回来上报结果
请问关于使用泛型结果如何?能否贴一下测试例子
No branches or pull requests
报错:
Patch Error:System.Exception: can not load generic method [LoadAsset] of UnityEngine.AssetBundle
补丁中的方法
[Patch]
private void TestABLoad(AssetBundle ab){
GameObject prefab=ab.LoadAsset 《GameObject》 ("testPrefab");
}
The text was updated successfully, but these errors were encountered: