W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
A package is a container that stores various types of features or assets, such as:
包通過(guò) Package Manager 為 Unity 提供了廣泛的增強(qiáng)功能。在 Editor 中,可以通過(guò)以下菜單來(lái)訪問(wèn) Package Manager 窗口:Window > Package Manager。
Note: The Package Manager also supports viewing any Asset Store packages you have already downloaded or imported from the Unity Asset Store. For more information, see Asset packages.
When Unity opens a Project, the Unity Package Manager reads the Project manifest (1) to figure out what packages to load in the Project. Then it sends a request (2) to the package registry server (3) for each package that appears as a dependency in the manifest. The package registry then sends the requested information and data back to the Package Manager (4), which then installs those packages (5) in the Project. Each Project has its own manifest which lists the packages to load as “dependencies” of the Project.
Unity Package Manager 安裝包的方式
如果要在項(xiàng)目中包含某個(gè)包,則必須更新項(xiàng)目清單以將該包包含在依賴項(xiàng)列表中。如果需要,可以直接修改項(xiàng)目清單,但是讓 Package Manager 執(zhí)行此操作會(huì)更安全、更輕松。有關(guān)使用用戶界面的更多信息,請(qǐng)參閱 Package Manager 窗口的文檔。
Package Manager 使用三個(gè)界面與用戶、清單和注冊(cè)表進(jìn)行通信:
界面方法 | 如何使用 |
---|---|
用戶界面 | 可使用 Package Manager 窗口來(lái)快速瀏覽和搜索功能。還可以輕松地選擇要安裝和更新的包,并解決包依賴關(guān)系中的沖突。Package Manager 提供了一個(gè)用戶界面,可用于直接更改項(xiàng)目清單。 |
包清單 | Package Manager 在 Unity 中提供了一個(gè)專用 Inspector,可用于查看任何包的清單,同時(shí),清單會(huì)成為 Project 視圖中的主要內(nèi)容。此集成意味著還可以直接在 Unity 中為嵌入式或本地包編輯包清單。 |
腳本 API | Package Manager 腳本 API 讓用戶能夠以編程方式與 Package Manager 進(jìn)行交互。可以用來(lái)查詢包注冊(cè)表,安裝、嵌入和刪除包,以及使用各種條件列出包。 |
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: