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>

呼~ 没讲清楚的地方欢迎评论,咱们一起探索。

我是大智,你的技术探路者,下次见!

别走!点赞收藏哦!

好,你可以走了。


分享到:


相關文章: