|
|
há 3 dias atrás | |
|---|---|---|
| Documentation~ | há 3 dias atrás | |
| Editor | há 2 semanas atrás | |
| Runtime | há 3 dias atrás | |
| Samples~ | há 2 semanas atrás | |
| StreamingAssets~ | há 4 semanas atrás | |
| Templates~ | há 2 semanas atrás | |
| Tests~ | há 2 semanas atrás | |
| ThirdParty | há 2 semanas atrás | |
| Tools~ | há 2 semanas atrás | |
| .gitattributes | há 4 dias atrás | |
| .gitignore | há 4 semanas atrás | |
| CHANGELOG.md | há 3 dias atrás | |
| CHANGELOG.md.meta | há 4 semanas atrás | |
| Editor.meta | há 4 semanas atrás | |
| README.md | há 2 semanas atrás | |
| README.md.meta | há 4 semanas atrás | |
| Runtime.meta | há 4 semanas atrás | |
| Third Party Notices.md | há 4 semanas atrás | |
| Third Party Notices.md.meta | há 4 semanas atrás | |
| ThirdParty.meta | há 4 semanas atrás | |
| package.json | há 3 dias atrás | |
| package.json.meta | há 4 semanas atrás |
Unity AppRuntimes package with a HybridCLR hot patch module.
After importing AppRuntimes through Package Manager, the Editor automatically installs the missing com.code-philosophy.hybridclr package from the official Git mirror at v9.0.3. Existing HybridCLR installations are preserved. AppSettings shows installation status and a retry button if installation fails. See package installation for details.
Select AppSettings/Install Unity MCP to install missing Unity MCP from https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main. Unity MCP installation is manual; startup and status checks never schedule it. Package installations run sequentially and preserve existing versions. Editor startup copies Templates~/Launch into Assets/Launch if the folder is absent, including the scene, script, assembly definition and their metadata. The check waits for compilation and import to finish and preserves an existing Launch folder. AppSettings/Load Launch Templates remains available for manual loading. The AppSettings menu lists Open Settings first, followed by a separator, Load Launch Templates, then Install Unity MCP.
AppSettings includes 上传资源 for recursive S3 uploads. This internal package stores shared S3 configuration in Editor/Config/S3UploadSettings.json; AppSettings has no S3 configuration form. See the S3 upload guide for configuration, destination paths, and manifest publication order.
Save adds missing AppRuntimes.Base and Unity.Advertisement.IosSupport references to the selected game assembly. 一键打包资源 remains disabled until the assembly and game scene are saved and both references are present. Unsaved assembly/scene selections also disable the window button.
The Hot Patch guide covers the Sources wrapper, original and update resource builds, DownloadUrl, and incremental resource updates.
Application code stays in Runtime/Sources, where UNITY_EDITOR excludes it from Player compilation. Select the hot patch assembly in AppSettings and click Save to synchronize HybridCLR settings. Original builds check Install and Generate/All, then delete the target HotPatch directory. Update builds copy changed Sources into that directory and remove only the outer wrapper. The loader uses the saved assembly name to load the DLL, then scans for and invokes methods marked with HotPatchInitializer. The original DLL does not require an initializer. NativeApi.cs in AppRuntimes.Base contains only AppInfo, TimeZone, and Dialog; other SDKs retain their own AOT native interfaces.
The 资源构建 menu contains only 一键打包资源. It builds both original and update resources into Build/HotUpdate/AllRes_<timestamp>, keeps only original resources in StreamingAssets, and removes the generated HotPatch sources before publishing. Launch extracts original resources into a temporary cache, compares the remote manifest, and downloads changed resources.
In the Editor, Launch waits until the game scene is loaded and active before invoking the initializer from AppRuntimes.Sources.Editor. This call and the Sources assembly are excluded from Player builds. Players continue to initialize the downloaded hot-update DLL through its tagged methods.