focus-creative-games / il2cpp_plus Goto Github PK
View Code? Open in Web Editor NEW改造过的支持HybridCLR的il2cpp版本
Home Page: https://code-philosophy.com/
License: MIT License
改造过的支持HybridCLR的il2cpp版本
Home Page: https://code-philosophy.com/
License: MIT License
可以在各分支的README中添加一下该分支的版本适用范围
用Unity 2020.3.33+Win64,在最新的hybridclr_trial工程中,修改 CreateByCode.cs 可复现:
public class CreateByCode : MonoBehaviour
{
private void Awake()
{
A();
}
// Start is called before the first frame update
void Start()
{
Debug.Log("这个脚本是通过代码AddComponent直接创建的");
A();
}
// Update is called once per frame
void Update()
{
}
private void A()
{
B();
}
private void B()
{
Debug.LogError("Test");
}
}
编辑器内的输出:
Test
UnityEngine.Debug:LogError (object)
CreateByCode:B () (at Assets/HotUpdate/CreateByCode.cs:33)
CreateByCode:A () (at Assets/HotUpdate/CreateByCode.cs:28)
CreateByCode:Start () (at Assets/HotUpdate/CreateByCode.cs:17)
Win64打包版本的输出:
Test
UnityEngine.Debug.LogError (Object)
We're encountering the following il2cpp crash bug that was introduced in Unity 2021.3.12 and fixed in 2021.3.16:
https://issuetracker.unity3d.com/issues/build-crashes-on-il2cpp-vm-class-getvirtualmethod-when-building-and-running-a-project-using-il2cpp-scripting-backend
This happens if you make a Development Build with Script Debugging enabled. The crash occurs because of a missing NULL check in the following function.
[il2cpp\libil2cpp\vm\Class.cpp:2242] il2cpp::vm::Class::GetVirtualMethod()
Unity added the NULL check back in 2031.3.16, but the latest version of Class.cpp in the il2cpp_plus repository is based on the 2021.3.14 version with the bug. Merging Unity's changes back into il2cpp_plus would be helpful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.