Unity-Technologies / Animation-Instancing

This technique is designed to instance Characters(SkinnedMeshRender).
Other
1.65k stars 301 forks source link

同时运行多个不同的模型感觉数据会乱掉 #53

Open mrchenyg opened 5 years ago

mrchenyg commented 5 years ago

当前遇到一个问题,如果把资源也打成ab会出现渲染不出来的问题,但是动作信息又都读取到了,这个问题怎么解决?

CloudJin commented 5 years ago

把什么资源打成ab会出现这个问题?

mrchenyg commented 5 years ago

这个乱掉的问题解决了是因为材质命名相同导致的,但是现在遇到了另外一个问题,就是prefab不打成ab资源的情况下是可以正常使用该功能,一旦prefab打成ab动态加载就无法渲染出来,所有资源都走ab这个有测试过吗?

------------------ 原始邮件 ------------------ 发件人: "Cloud"notifications@github.com; 发送时间: 2019年4月16日(星期二) 上午10:33 收件人: "Unity-Technologies/Animation-Instancing"Animation-Instancing@noreply.github.com; 抄送: ""122510610@qq.com; "Author"author@noreply.github.com; 主题: Re: [Unity-Technologies/Animation-Instancing] 同时运行多个不同的模型感觉数据会乱掉 (#53)

把什么资源打成ab会出现这个问题?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

CloudJin commented 4 years ago

方便把出错的log贴一下吗?

chardian commented 2 years ago

我这边也遇到了同样的问题, 没有任何报错, 在Render函数里面Debug了一遍每一行代码, 都是正常执行的. 如果prefab使用assetbundle方式读取的话, 模型就无法显示 尝试过直接读取prefab, 动作仍然使用assetbundle方式读取, 是能正常显示的. 总结就是: 动作用不用assbundle方式读取对结果无影响, prefab如果使用assetbundle方式读取的话, 就没法显示.

chardian commented 2 years ago

我知道原因了. 因为shader variant的问题. 要想解决这个问题, 最简单的办法是就是打开设置 Graphics -> Instancing Variants 改成Keep All