教程视频 Tutorial video:
https://www.bilibili.com/video/BV14T4y197bW
在本教程中我们将学习Unity 2021版新添加的对象池API。
主要内容:
- Object Pool API的使用方法
- 构建一个方便好用的泛型类基础对象池
- 制作基于对象池的随机宝石生成器脚本
- 演示正确使用对象池所带来的性能提升
In this video you will learn how to use the build-in object pool API in Unity Engine 2021.
Main Contents:
- Create a custom object pool by using Unity build-in ObjectPool type
- Build an easy to use generic base pool type
- Learn how to improve performance by correctly using object pooling
相关视频 Related video: 什麽是对象池 Object Pool - https://youtu.be/LmB_fhIxCDk
使用到的资源包 Assets package I have used: Free Gems Sets - Unity Asset Store - Free Gems Sets - Unity Asset Store - https://assetstore.unity.com/packages/3d/props/sets-gems-19902
参考资料链接 Reference Links: ObjectPool - Unity Documentation Scripting API - https://docs.unity3d.com/2021.1/Documentation/ScriptReference/Pool.ObjectPool_1.html
➤订阅我的油管频道 Subscribe to my YouTube Channel - https://www.youtube.com/channel/UCSRCf2y6LV8vpKSoXDoU2VQ?sub_confirmation=1
➤Discord Server - https://discord.gg/ZmTgSCe4Jq
➤Twitter - https://twitter.com/XuZuyan
➤ArtStation - https://www.artstation.com/xuzuyan