选自过去1~2周的内容: https://twitter.com/unity3d
0) 快人一步,看未来, Unity2019 版本的Roadmap路线图。
https://www.dropbox.com/s/j9sga9giybo4l7g/UniteLA-2018-Roadmap.pdf?dl=0
视频: https://www.youtube.com/watch?v=o_DOrBpOvG0&feature=youtu.be
1) 这周Unity最大的新闻就是 UniteLA 大会, 视频在Youtube上观看, 那么PPT呢? 看这里~~~~
https://www.slideshare.net/unity3d/presentations
顺便也推荐一下, Unity日本的组织账号:
https://www.slideshare.net/UnityTechnologiesJapan/presentations
每年的 Unite 东京大会 都会放上, 而且经常有其他活动的ppt.
1) 官方博客: 充分利用Unity 2018中的TextMesh Pro
在本文中,我们将介绍一种不使用DrawMesh生成GameObject(MeshRenderer)的绘图方法。
通常,Unity通过将GameObject与Renderer组件放在场景中来绘制各种内容。
如果它是模型数据就是组件MeshRenderer,如果是uGUI就是组件CanvasRenderer,。
本文有写 使用 TextGenerator 和 CommandBuffer 进行文本显示。
3) 【Unity2018】第一次使用CommandBuffer.DrawMeshInstancedIndirect来种草
测试场景显示10万个草。 特效组件有这个选项, 开启与不开启的性能对比: 看FPS吧
把计算从 CPU -> GPU
GPU Instancing是一次绘制同一网格的多个副本的能力。尽管对该功能有一些限制,但与批处理相比,它适用于绘制许多富含多边形的模型。 什么意思? 参考如下: 合并DrawCall
【Unity】使用GPU Instancing绘制粒子并尝试制作自己的着色器
4) https://github.com/Unity-Technologies/EndlessRunnerSampleGame 包含两个重要的演示特性:
- The use of the new Lightweight Rendering pipeline
- The use of the new Addressable System that replace the Assets Bundles.
5) 有个新项目 https://github.com/Unity-Technologies/com.unity.vscode_editor
没有说明干啥的, 期待ying ........
6) 新项目:https://github.com/Unity-Technologies/OpenWorldSample
开放世界是什么鬼?
OpenWorldSample
This sample project to test open world on mobile
Development Environment
Unity 2019.1
API:OpenGL ES3.1 and Metal
Target HW: Galaxy S8(Snap835), iPhone 6s plus(A9)
Memory budget: 600mb
Installed Packages
- com.unity.render-pipelines.lightweight
- com.unity.shadergraph
- com.unity.postprocessing
- com.unity.addressables // 2018-10-18 currently "0.3.5-preview"
- com.unity.memoryprofiler // 2018-10-18 currently "0.1.0-preview.1"
7) Poly2Tri多边形三角化算法(简单/复杂多边形) C# 版本:
https://github.com/Unity-Technologies/poly2tri-cs
原版: http://code.google.com/p/poly2tri/
这个又会干啥?
用C#编写的快速,通用,多维二叉搜索树 https://github.com/Unity-Technologies/KdTree
8) Unity 推出的3D游戏套件(3D Game Kit) 提供了一系列令人惊叹的资产,脚本和着色器,例如这款游戏套件,它可以让您的草(或苔藓,或雪,或任何您想要的任何东西)保持在任何3D模型上。
9) 如何在编辑器上检查DOTween的播放状态
通过选择场景中放置的“[DOTween]”对象,
可以在“DO Tween Component”字段中检查DOTween的播放状态
var tweens = DOTween.PlayingTweens();
从脚本中,
您可以获得以这种方式播放的Tween对象列表
///////////////////////////////////////////////////// Unite Los Angeles 2018 三天内容肯定特别多 ///////////////
1) https://www.youtube.com/watch?v=2A9hAhAQ7V4 3:09:52 / 5:52:45 的时候 : ECS:Why does it work? Why is ECS fast?
ECS 确实很火啊, 第二天完全是它的专场。 而且目前市面上已经有很多团队直接使用了。 虽然现在还是Beta版本~~
2) https://www.youtube.com/watch?v=2A9hAhAQ7V4 5:09:33 / 5:52:45 的时候 Optimizing Performance Across Oculus Mobile 第一个建议是 :质量与文件大小的最佳平衡,但是可能不适用于UI
然后是进一步减少DC: Further Reducing Draw Calls
Batch Meshes 合并Mesh
Altas Textures 图集
Renduce Numbers of Materials 减少材质数量
动态物体不能接收烘培对象的阴影
可以使用Lightprobe
假的光效
后面就是推荐使用Profile