Unity Learn home

Groups have been deprecated and are now in read-only mode.

bg
Invite Others
Search
More
DISCUSSION
MEMBERS
Search
Group Info
Description
技术交流
Preferred Language
lijiawanwanglaohan
Mar 25, 2022
各位大佬好,这里是unity新手小白.
在开发时我更改了NPC的layer,然后在场景中,他们就消失不见了.我双击NPC,发现他跑到地图下面去了,哪里还有我制作的UI界面,我不知道这种情况怎么恢复正常.
如果有任何想法请告诉我,谢谢任何可能的帮助.

m
mdcg01
Nov 1, 2021
大发带人最厉害的回血导师无需打开直接➕(鹏哥VQ同)7312627✅码:53535353✅zhgcw68点com✅首存即送6888✅不赚包赔计划✅信誉平台✅中崋最强导师✅【实力带人回血导师团队╇▊实力带人回血导师团队▊▊金牌团队▊顶尖计划▊导师单带▊回血上岸▊据新闻联播报道: 最良心的回血导师,导师带赚钱一对一 。据新闻联播报道:中崋,十年老品牌,欢迎你到来(央视网评论员)来源:央视网,根据中央新闻联播报导
来源:央视网-人民网-搜狐财经-新华网-凤凰资讯-网易新闻-知乎日报-热点资讯-搜狐新闻-新浪新闻(央视网评论员)
(人民网评论员)来源:央视网

编辑:鹏哥监制:鹏哥流程编辑:鹏哥

N
NewMonster.cm
Aug 2, 2021
Addressable执行Addressables.LoadSceneAsync加载场景时报错 the AssetBundle has not been loaded.

我执行步骤:
1、场景打包并部署到web服务器
2、游戏启动先将资源下载到本地缓存,这里本地缓存资源全部用编码命名,我只能根据文件总体大小判断,ab包应该是全部下载完毕了
3、用LoadAssetAsync读取UI预制件并实例化登录面板,与服务器连接并进行登录
4、登录成功后用Addressables.LoadSceneAsync加载场景,失败报错:
Scene 'Scene_Map_Main.unity' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.
To add a scene to the build settings use the menu File->Build Settings...
UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1/<>c__DisplayClass57_0<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>:<add_CompletedTypeless>b__0 (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>)
DelegateList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>>:Invoke (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1<System.Collections.Generic.IList`1<UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle>>) (at Library/PackageCache/com.unity.addressables.cn@1.18.11/Runtime/ResourceManager/Util/DelegateList.cs:69)...

Addressable版本:1.18.11 unity:2019.4.3
unity升级到2020.3.6仍然报错

N
NewMonster.cm
Aug 2, 2021
Addressable 下载资源报错 并且无法获取进度

使用Addressable时,分组打包,并将包部署到本地的web服务器后,编辑器下选择Use Existing Build模式进行调试,主要代码如下:
AsyncOperationHandle handle = Addressables.DownloadDependenciesAsync("must"); handle.Completed += (Assets) => {
Debug.Log("下载必下资源完毕:");
};
yield return handle;
while (!handle.IsDone) {
Debug.Log("下载进度:" + downhandle.PercentComplete);
yield return null;
}
if (handle.IsDone)
{
Debug.Log("下载资源完毕!!");
}
在这个过程中报错,而且没有显示出"下载进度:"的值,报错及日志如下
需下载资源大小:278.67
Curl error 56: Recv failure: Connection was reset
Curl error 52: Empty reply from server
RemoteProviderException : Unable to load asset bundle from : http://192.168.101.183/Android/uipanel_assets_advancedequipmentpanel.bundle UnityWebRequest result : Failed to receive data ResponseCode : 200, Method : GET url : http://192.168.101.183/Android/uipanel_assets_advancedequipmentpanel.bundle
Curl error 18: transfer closed with 76978619 bytes remaining to read
Curl error 18: transfer closed with 58390952 bytes remaining to read
RemoteProviderException : Unable to load asset bundle from : http://192.168.101.183/Android/uiatlas_assets_common_mainatlas.bundle UnityWebRequest result : Failed to receive data ResponseCode : 200, Method : GET url : http://192.168.101.183/Android/uiatlas_assets_common_mainatlas.bundle
...这里很多bunld Failed to receive data的报错,总共40多个吧
下载必下资源完毕:
下载资源完毕!!

下载报错后需要重新启动,这是会提示
需下载资源大小:78.67
有时要执行多次才能全部下载完毕
这里有两个问题:
1、下载进度那一句为什么一直无法执行,downhandle.PercentComplete能取到下载进度吗?
2、怎么捕获错误并重复执行下载,以保证资源全部下载完毕再继续后面的逻辑

c
cyx3345
Jul 15, 2021
大佬们请看附件截图,我下载了unity 4.6.9版本的,安装后程序被禁止不能打开。我的是苹果电脑MAC 2017的

陈康123
Mar 2, 2021
我下载ARFoundation的,使用的是unity2020.2.6,运行的时候提示不支持,unity编辑器下面运行的,有没有大神知道为啥

Description
技术交流
Preferred Language