Unity报错汇总

1、ParticleEmitter报错,改用ParticleSystem。

2、Unable to resolve reference 'UnityEngine.Timeline'. Is the assembly missing or incompatible with the current platform?

Package Manager安装TimeLine

3、NavMesh Modifier所在的物体,一定要放在NavMeshSurface下作为它的子物体,位置一定要

高于它的父物体,否则无法生成NavMesh。Ignore From Build如果勾选则不生成NavMesh。

4、

unity 打包 Could not download httpcore-4.4.10.jar

D:\Program Files\Unity\2020.3.40f1c1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\GradleTemplates

baseProjectTemplate.gradle文件中修改、

allprojects {
    buildscript {
        repositories {**ARTIFACTORYREPOSITORY**
            maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
            maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
            google()
            jcenter()
        }

        dependencies {
            // If you are changing the Android Gradle Plugin version, make sure it is compatible with the Gradle version preinstalled with Unity
            // See which Gradle version is preinstalled with Unity here https://docs.unity3d.com/Manual/android-gradle-overview.html
            // See official Gradle and Android Gradle Plugin compatibility table here https://developer.android.com/studio/releases/gradle-plugin#updating-gradle
            // To specify a custom Gradle version in Unity, go do "Preferences > External Tools", uncheck "Gradle Installed with Unity (recommended)" and specify a path to a custom Gradle version
            classpath 'com.android.tools.build:gradle:4.0.1'
            **BUILD_SCRIPT_DEPS**
        }
    }

    repositories {**ARTIFACTORYREPOSITORY**
        maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
        maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
        google()
        jcenter()
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }

参考 http://t.csdn.cn/mew6whttp://t.csdn.cn/mew6w多重试打包几次也是可以的。

5. 子对象碰撞,

Collision collision获得的是父类带有Rigidbody的对象

 003为实际发生碰撞的物体

OnTriggerEnter是带有BoxCollider的物体

6.        模型在unity发布到头盔中闪烁的问题

先调整Quality,将Andoird默认的质量调高,但是面会出现闪烁的情况。

这时我们需要调整相机的Near为1

面闪烁主要是因为模型的面重叠导致。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

艺菲

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值