当前位置:网站首页>Ilruntime hotfix framework installation and breakpoint debugging
Ilruntime hotfix framework installation and breakpoint debugging
2022-06-10 23:45:00 【Wangyuanjun】
Official website :
https://ourpalm.github.io/ILRuntime/public/v1/guide/tutorial.html
https://github.com/Ourpalm/ILRuntime
1. use Unity built-in PackageManager Search for "ILRuntime"
1.1 There is :
direct “install”
1.2 non-existent
First of all, the Packages/manifest.json in , add to ILRuntime Source information for , In this file dependencies Add the following code before the node
"scopedRegistries": [
{
"name": "ILRuntime",
"url": "https://registry.npmjs.org",
"scopes": [
"com.ourpalm"
]
}
],
Pictured :
And then through Unity Of Window->Package Manager menu , open Package Manager, Select the upper tab option as All Packages,Advanced On the inside Show Preview Packages, wait for Unity After loading package information , You should be able to find... In the list on the left ILRuntime, Click Install
1.3 Still can't install :
part Unity The version cannot be directly displayed in the list ILRuntime, If the list on the left is missing , That's at the end of the project manifest.json Medium dependencies Beginning of paragraph , Add the following code to manually ILRuntime Add to project
“com.ourpalm.ilruntime”: “1.6.0”,
Pictured :
1.4 You can import Demo
ILRuntime After the package is installed , stay Package Manager Choose ILRuntime, On the right detailed page, there are Samples, Click... On the right Import to project Can be ILRuntime An example of Demo Import the current project directly .
1.5 Import Demo Report errors
After the example is imported into the project, it may not be started unsafe Cause compilation error , Can be in PlayerSettings The admission Allow unsafe code Resolve compilation issues .
1.6 Turn on hot change DLL engineering
stay Assets\Samples\ILRuntime\1.6\Demo\HotFix_Project~ Open hotter in the directory DLL Of vs engineering , Compile directly , Then it can run normally ILRuntime Of Demo An example
1.7 Final solution
If you still can't find it after the above configuration ILRuntime, You can follow the following Unity3D The steps of the sample project are manual installation ILRuntime
· ILRuntime Install and debug plug-ins
One . official gitHub Download plug-ins Be careful VS edition
1. Address :https://github.com/Ourpalm/ILRuntime/releases
Two . Plug in installation
1. close VS
2. open ILRuntimeDebuggerLauncher.vsix install 
3. Just follow the steps 



OK The debugging plug-in has been installed
· ILRuntime Start debugging
One . For the convenience of debugging , Change the code first
1. When pressed F1 Print information when
HelloWorld Script , stay update Add the following code :
if (Input.GetKeyDown(KeyCode.F1))
OnHotFixLoaded();
2. When debugging plug-ins, you need to Unity Add... To the project appdomain.DebugService.StartDebugService(56000); This code , Among them appdomain Point to your hotfix assembly 
Two . Breaking point , function unity
1、 First run Untiy, Must have performed appdomain.DebugService.StartDebugService(56000) Code , To debug the breakpoint normally
2、 stay HotFix_Project Open the debug plug-in window in the project Debug( debugging )->Attach to ILRuntime
/3、 Fill the pop-up window with the name of the host being debugged IP Address and port of debugging server , Click on attach, Started debugging .
.
4. Start debugging , stay unity Select the running Game Window press F1, Can follow the normal VS Same as debugging 
Generate dll Location
If HotFix_Project The folder is not in the project , So the generated dll The document is still there StreamingAssets Next .
Official documents https://ourpalm.github.io/ILRuntime/public/v1/guide/performance-optimization.html
边栏推荐
- Relevant knowledge of flowable BPMN
- Clustered and non clustered indexes
- PwnTheBox,Pwn:tutorial1
- 1.打开R程序,使用 apply 函数计算1到12按先后次序每隔3个数一组的和。即,计算1+4+7+10=?2+5+8+11=?,3+6+9+12=?
- Is it safe for BOC securities to open an account? Is it formal?
- Interface test learning notes
- leetcode 130. Surrounded Regions 被围绕的区域(中等)
- 电子协会 C语言 1级 7 、画矩形
- 300题 线代第一讲行列式
- LeetCode 501 :二叉搜索樹中的眾數
猜你喜欢

Prefer "big and small weeks", only write 200 lines of code every day, and the monthly salary of 8k-17k people will rise again

Simple impedance matching circuit and formula

BGP - route map extension (explanation + configuration)

Dell R730 raid5 安装Server 2016(解决磁盘大于2T)

宝塔计划任务Shell脚本定时删除某各目录下所有文件【记录】

功能测试之设计语言测试:功能测试包含哪些测试?分别有什么作用

Gather for summer Yiping: not everything is reported to Robin Lee. They compete with Xiaomi Huawei by products

第六章——分枝限界法

LeetCode 501 :二叉搜索樹中的眾數

Fiddler creates an autoresponder
随机推荐
Development and implementation of AI intelligent video analysis easycvr platform device channel batch deletion function
MySQL mvcc multi version concurrency control
30 | 怎么重设消费者组位移?
Mathematics and quality education
[paper sharing] pata: fuzzing with path aware Taint Analysis
LeetCode 501 :二叉搜索樹中的眾數
Redis list list common commands
Leetcode 501: mode in binary search tree
干货丨MapReduce的工作流程是怎样的?
改变世界的开发者丨玩转“俄罗斯方块”的瑶光少年
中银证券股票开户安全吗?是正规的吗?
Sealem Finance - a new decentralized financial platform based on Web3
Solve access denied for user 'root' @ 'localhost' (using password: yes)
Executor - Shutdown、ShutdownNow、awaitTermination 詳解與實戰
Expandable to Max – MCU and MPU development, using the same license
MySQL composite index is not used by hits
一文带你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue
redis列表list常用命令大全
PwnTheBox,Web:hello
An adaptive size / full screen display method for iframe frames