Skip to content

Commit 1a5907c

Browse files
authored
Create README.md
1 parent 92aa051 commit 1a5907c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# PureScript
22

3-
[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/loongly/PureScript/blob/master/LICENSE)
4-
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/loongly/PureScript/pulls)
3+
[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/loongly/PureScript/blob/master/LICENSE)[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/loongly/PureScript/pulls)
54

65

76
一个支持Unity3D的C#热更框架,基于Mono的[MONO_AOT_MODE_INTERP](https://www.mono-project.com/news/2017/11/13/mono-interpreter/)模式。
@@ -45,14 +44,16 @@
4544
以下两段代码是等效的,详细参考DemoProject/*/MonoEntry.cs。
4645

4746
ScriptEngine.Setup(reloadDir, "TestEntry.dll");
48-
47+
4948
// equal to:
50-
49+
5150
Assembly assembly = Assembly.Load("TestEntry.dll");
5251
Type type = assembly.GetType("MonoEntry");
5352
MethodInfo mi = type.GetMethod("Main");
5453
var res = mi.Invoke(null, null)
5554

55+
`注意` 需要热更新的程序集如果是Unity自动生成的工程,会自动引用一堆的无用dll,比如UntiyEditor*.dll,和一堆根本不会用到的System*.dll ,因为安装包内并没有带上这些,加载会失败。这时需要手动删掉这些用不到的引用。或者再建一个工程,手动管理引用,后面也可以考虑做自动化工具,strip掉没用的引用。
56+
5657
--------------------------------------------
5758

5859
## 实现

0 commit comments

Comments
 (0)