洪流學堂,讓你快人幾步。你好,我是你的技術探路者鄭洪智,你可以叫我大智。
本文最後更新于2020-08-03,随着Unity版本更新可能會有所不同,如遇問題可以私信大智(vx:zhz11235)。
很多同學發現2020.1的Package Manager清單中沒有Entities包了,即使打開
show preview packages
也沒有,如何解決呢?
在Unity2020之後,啟用預覽包移到了菜單欄Edit > Project Settings > Package Manager中的Enable Preview Packages。如下圖:
先說解決辦法,再告訴你原因。順便吐槽一句:說好的2020.1釋出DOTS正式版呢?
解決辦法
1、打開Unity的菜單欄
Window > Package Manager
2、在左上角+号圖示選擇
Add package from git URL

3、在輸入框中輸入
com.unity.entities
,然後點選Add按鈕。
4、點完以後可能什麼反應都沒有,不過這時候已經背景在下載下傳了,稍微等一會,下載下傳完成後,你就能看到加載的進度條了。
5、加載完成後,Console可能會有一些警告和錯誤,隻要點選Clear能清除掉,就沒什麼問題。
6、這時候你再去看Package Manager的清單,就能看到DOTS三件套都安裝好了。
問題原因
Unity在2020.1中修改了package manager的一些政策,處于早期開發階段和開發不活躍的包無法直接搜尋到(即使打開show preview package也搜不到,清單裡也沒有),隻能通過上述的步驟:
1、打開package manager
2、在左上角+号圖示選擇
Add package from git URL
3、在輸入框中輸入包名手動添加。
該問題的官方說明連結:https://forum.unity.com/threads/visibility-changes-for-preview-packages-in-2020-1.910880/
【附】無法直接搜尋到的包有:
com.ptc.vuforia.engine
com.unity.2d.entities
com.unity.ai.planner
com.unity.aovrecorder
com.unity.assetbundlebrowser
com.unity.assetgraph
com.unity.barracuda
com.unity.barracuda.burst
com.unity.build-report-inspector
com.unity.cloud.userreporting
com.unity.collections
com.unity.connect.share
com.unity.dots.editor
com.unity.entities
com.unity.film-tv.toolbox
com.unity.google.resonance.audio
com.unity.immediate-window
com.unity.mathematics
com.unity.meshsync
com.unity.multiplayer-hlapi
com.unity.package-manager-doctools
com.unity.package-manager-ui
com.unity.package-validation-suite
com.unity.physics
com.unity.platforms
com.unity.platforms.android
com.unity.platforms.linux
com.unity.platforms.macos
com.unity.platforms.web
com.unity.platforms.windows
com.unity.playablegraph-visualizer
com.unity.render-pipelines.lightweight
com.unity.rendering.hybrid
com.unity.renderstreaming
com.unity.scene-template
com.unity.simulation.client
com.unity.simulation.core
com.unity.simulation.capture
com.unity.simulation.games
com.unity.standardevents
com.unity.streaming-image-sequence
com.unity.test-framework.performance
com.unity.tiny.all
com.unity.transport
com.unity.upm.develop
com.unity.vectorgraphics
com.unity.webrtc
com.unity.xr.googlevr.android
com.unity.xr.googlevr.ios
com.unity.xr.legacyinputhelpers
com.unity.xr.oculus.android
com.unity.xr.oculus.standalone
com.unity.xr.openvr.standalone
com.unity.xr.arsubsystems
com.unity.xr.interactionsubsystems
com.unity.xr.windowsmr.metro
擴充閱讀
【擴充學習】在洪流學堂公衆号回複 DOTS
可以閱讀本系列所有文章,還有不定時的直播通知哦!
呼~ 沒講清楚的地方歡迎評論,咱們一起探索。
我是大智(微信:zhz11235),你的技術探路者,下次見!
别走!點贊,收藏哦!
好,你可以走了。