Unity 包
2020-10-23 11:01 更新
一个包中包含适合项目各种需求的功能。这可能包括随 Editor 一起安装的所有 Unity 核心功能,或者可根据需要安装的其他包。
有关使用包的更多一般信息,请参阅使用 Package Manager。
If you are only interested in finding documentation or information about a specific package, click the links on the Verified packages, Preview packages and Built-in packages pages. To find a package by keyword, see the Packages by keywords page.
有关借助 Unity Package Manager 来使用包的信息,请单击下表提供的指向相应文档各个主题的链接:
您想做什么? | 查看此文档: |
---|---|
获取包的简介 | The Concepts section explains principles and features of the Package Manager, including basic concepts like versions, manifests, registries, states, sources, and the package lifecycle, as well as dependency and resolution. Finding packages explains how to use the Package Manager window to: - Find specific versions of each package. - Find Asset Store packages that you can import or download into your project. The Package Manager window section explains how to interact with the Unity Package Manager inside Unity. |
安装包 | These pages describe how to use the Package Manager window to install packages from the following sources: - Installing from the registry - Installing from a local folder - Installing from a local tarball file - Installing from a Git URL Embedded dependencies describes where to put your package in order to embed it in your project. You can either embed a package manually or use the Scripting API to embed a package that is already installed in your project. Switching to another package version describes how to use the Package Manager window to switch versions of a package already installed. Removing an installed package describes how to use the Package Manager window to remove a package from your project. Disabling a built-in package describes how to use the Package Manager window to enable and disable built-in packages. |
Working with Asset packages | For information on working with Asset packages directly inside the Package Manager window, see: - Importing an Asset package - Updating your Asset package |
对包进行故障排除 | If any of your project’s packages, including the Package Manager window itself, fails to load correctly, refer to the Troubleshooting and Package conflicts sections. |
进一步了解如何使用清单 | The project manifest reference page describes each attribute, including what values are valid and what role they play. The Inspecting packages reference page describes how to view a package manifest in the Inspector. If the package is mutable (editable), you can also use the Inspector to modify the manifest itself. |
了解包的高级使用方式 | To get started creating scripts that interact with the Package Manager, see Scripting API for packages. It provides a high-level overview of working with the Package Manager APIs and code samples for browsing the list of packages, adding a package to a project, and embedding a package that is already installed in the project. If you want to find out about how to use your own package registry server in addition to the standard Unity registry, see Scoped package registries. |
Build and share your own tools and assets in a package | The Custom packages section is a complete guide on building your own packages. It explains custom package requirements, such as naming and file structure. It also covers how to fill out the package manifest, share your package, and more. |
以上内容是否对您有帮助:
更多建议: