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
面闪烁主要是因为模型的面重叠导致。
总结
- 上一篇: 使用CRM客户关系管理系统的好处有哪些?
- 下一篇: hadoop Permission de