Skip to content

Commit

Permalink
修复文档链接错误
Browse files Browse the repository at this point in the history
  • Loading branch information
pirunxi committed Mar 25, 2024
1 parent 2b088bd commit b53f3a1
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 285 deletions.
15 changes: 0 additions & 15 deletions docs/basic/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,21 +183,6 @@ hybridclr仓库推荐填写`1.0`,即每次安装1.0分支的最新版本;il2

由于Unity自身原因,如果使用的于Unity版本低于2021.3.4,构建WebGL平台必须全局安装。 请查阅下面章节的`全局安装`文档。


### Unity 2021

:::caution
**如果你的com.code-philosophy.hybridclr版本 >= v2.0.1**,由于已经使用MonoHook技术在不修改UnityEditor.CoreModule.dll的情况下也能复制出裁剪后的AOT dll,**不需要**执行以下操作。
:::

补充元数据及`HybridCLR/Generate/*`下的部分命令依赖裁减后的AOT dll。但Unity 2021版本(2019、2020不需要)打包`iOS平台`(其他平台不需要)时,由于Unity Editor未提供公开接口可以复制出target为iOS时的裁剪后的AOT dll,故必须使用修改后的UnityEditor.CoreModule.dll覆盖Unity自带的相应文件。

具体操作为将 `{package目录}/Data~/ModifiedUnityAssemblies/2021.3.x/UnityEditor.CoreModule-{Win,Mac}.dll` 覆盖 `{Editor安装目录}/Editor/Data/Managed/UnityEngine/UnityEditor.CoreModule.dll`,具体相关目录有可能因为操作系统或者Unity版本而有不同。

**由于权限问题,该操作无法自动完成,需要你手动执行复制操作。**

`UnityEditor.CoreModule.dll` 每个Unity小版本都不相同,我们目前暂时只提供了2021.3.1版本,如需其他版本请自己手动制作,详情请见 [修改Unity编辑器相关dll](./modifyunitydll.md)

### Unity 2019

为了支持2019,需要修改il2cpp生成的源码,因此我们修改了2019版本的il2cpp工具。故Installer的安装过程多了一个额外步骤:将 `{package}/Data~/ModifiedUnityAssemblies/2019.4.40/Unity.IL2CPP.dll` 复制到 `{project}/HybridCLRData/LocalIl2CppData/il2cpp/build/deploy/net471/Unity.IL2CPP.dll`
Expand Down
253 changes: 0 additions & 253 deletions docs/basic/modifyunitydll.md

This file was deleted.

2 changes: 0 additions & 2 deletions docs/help/commonerrors.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ com.code-philosophy.hybridclr 与 hybridclr及il2cpp_plus版本不匹配导致

- 如果是以dll形式放到工程内的热更新dll未找到,则你需要在HybridCLRSettings的外部dll搜索路径中添加它所在的目录
- 你从未在主工程中使用过跟该dll相关代码,导致就算link.xml中保留了,仍然整个被裁剪。解决办法是在主工程中随便写段代码引用该dll中的某个类或函数。
- Unity2021版本,打包iOS平台,使用低于2.0.1版本com.code-philosophy.hybridclr,同时未修改 UnityEditor.CoreModule.dll文件,导致未获得裁剪后的dll。解决办法是升级hybridclr_unity到2.0.1及更高版本或者按照文档[修改Unity编辑器相关dll](../basic/modifyunitydll.md)修改UnityEditor.CoreModule.dll。
- 其他原因。万能的解决办法是手动build一次项目生成aot dll。

### 运行 `HybridCLR/generate/xxx` 时发生 `NullReferenceException. HybridCLR.Editor.ABI.TypeCreatorBase.CreateTypeInfo ...`

Expand Down
14 changes: 0 additions & 14 deletions i18n/en/docusaurus-plugin-content-docs/current/basic/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,20 +198,6 @@ Local installation has been supported since Unity 2021.3.4+ and 2022.3.0+ versio

Due to Unity's own reasons, if the Unity version used is lower than 2021.3.4, the WebGL platform must be installed globally. Please consult the `Global Installation` documentation in the following section.

###Unity 2021

:::caution
**If your com.code-philosophy.hybridclr version >= v2.0.1**, since the MonoHook technology has been used, the cropped AOT dll can be copied without modifying UnityEditor.CoreModule.dll,* *Not required** to do the following.
:::

Supplementary metadata and some commands under `HybridCLR/Generate/*` depend on the reduced AOT dll. However, when Unity 2021 version (not required for 2019 and 2020) packages the `iOS platform` (not required for other platforms), since the Unity Editor does not provide a public interface to copy the tailored AOT dll when the target is iOS, the modified version must be used The UnityEditor.CoreModule.dll overrides the corresponding file that comes with Unity.

The specific operation is to cover `{package directory}/Data~/ModifiedUnityAssemblies/2021.3.x/UnityEditor.CoreModule-{Win,Mac}.dll` with `{Editor installation directory}/Editor/Data/Managed/UnityEngine/UnityEditor.CoreModule .dll`, the specific related directory may vary depending on the operating system or Unity version.

**Due to permission issues, this operation cannot be completed automatically, and you need to perform the copy operation manually. **

`UnityEditor.CoreModule.dll` Each small version of Unity is different. We currently only provide version 2021.3.1. If you need other versions, please make them manually. For details, please refer to [Modify Unity Editor-related dll](modifyunitydll.md).

### Unity 2019

In order to support 2019, the source code generated by il2cpp needs to be modified, so we modified the 2019 version of the il2cpp tool. Therefore, there is an additional step in the Installer installation process: copy `{package}/Data~/ModifiedUnityAssemblies/2019.4.40/Unity.IL2CPP.dll` to `{project}/HybridCLRData/LocalIl2CppData/il2cpp/build/deploy/net471 /Unity.IL2CPP.dll`
Expand Down
Loading

0 comments on commit b53f3a1

Please sign in to comment.