Unity2020.1中如何安裝DOTS的Entities包?

洪流學堂,讓你快人幾步。你好,我是你的技術探路者鄭洪智,你可以叫我大智。

<code>本文最後更新於2020-08-03,隨著Unity版本更新可能會有所不同
如遇問題可以私信大智。/<code>

很多同學發現2020.1的Package Manager列表中沒有Entities包了,即使打開show preview packages也沒有,如何解決呢?

在Unity2020之後,啟用預覽包移到了菜單欄Edit > Project Settings > Package Manager中的Enable Preview Packages。如下圖:

先說解決辦法,再告訴你原因。順便吐槽一句:說好的2020.1發佈DOTS正式版呢?

解決辦法

1、打開Unity的菜單欄Window > Package Manager2、在左上角+號圖標選擇Add package from git URL

Unity2020.1中如何安裝DOTS的Entities包?

3、在輸入框中輸入com.unity.entities,然後點擊Add按鈕。

Unity2020.1中如何安裝DOTS的Entities包?

4、點完以後可能什麼反應都沒有,不過這時候已經後臺在下載了,稍微等一會,下載完成後,你就能看到加載的進度條了。

5、加載完成後,Console可能會有一些警告和錯誤,只要點擊Clear能清除掉,就沒什麼問題。

Unity2020.1中如何安裝DOTS的Entities包?

6、這時候你再去看Package Manager的列表,就能看到DOTS三件套都安裝好了。

Unity2020.1中如何安裝DOTS的Entities包?

問題原因

Unity在2020.1中修改了package manager的一些策略,處於早期開發階段和開發不活躍的包無法直接搜索到(即使打開show preview package也搜不到,列表裡也沒有),只能通過上述的步驟:

1、打開package manager2、在左上角+號圖標選擇Add package from git URL3、在輸入框中輸入包名手動添加。

該問題的官方說明鏈接:https://forum.unity.com/threads/visibility-changes-for-preview-packages-in-2020-1.910880/

【附】無法直接搜索到的包有:

<code>

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

/<code>

呼~ 沒講清楚的地方歡迎評論,咱們一起探索。

我是大智,你的技術探路者,下次見!

別走!點贊收藏哦!

好,你可以走了。


分享到:


相關文章: