Unity报错汇总
1、ParticleEmitter報(bào)錯(cuò),改用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. 子對(duì)象碰撞,
Collision collision獲得的是父類帶有Rigidbody的對(duì)象?003為實(shí)際發(fā)生碰撞的物體
OnTriggerEnter是帶有BoxCollider的物體6.? ? ? ? 模型在unity發(fā)布到頭盔中閃爍的問題
先調(diào)整Quality,將Andoird默認(rèn)的質(zhì)量調(diào)高,但是面會(huì)出現(xiàn)閃爍的情況。
這時(shí)我們需要調(diào)整相機(jī)的Near為1
面閃爍主要是因?yàn)槟P偷拿嬷丿B導(dǎo)致。
總結(jié)
- 上一篇: 使用CRM客户关系管理系统的好处有哪些?
- 下一篇: JS中 ?? 与 || 的区别