Skip to content

RYanXuDev/UnityObjectPoolTutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2657803 · Oct 5, 2022

History

11 Commits
Nov 7, 2021
Nov 7, 2021
Nov 7, 2021
Nov 7, 2021
Nov 7, 2021
Nov 7, 2021
Nov 7, 2021
Oct 5, 2022

Repository files navigation

Cover_GitHub

Unity 2021

自带对象池API教程

Build-in Object Pool API Tutorial


教程视频 Tutorial video:

https://www.bilibili.com/video/BV14T4y197bW

https://youtu.be/_AoNzD9sp3o


在本教程中我们将学习Unity 2021版新添加的对象池API。

主要内容:

  1. Object Pool API的使用方法
  2. 构建一个方便好用的泛型类基础对象池
  3. 制作基于对象池的随机宝石生成器脚本
  4. 演示正确使用对象池所带来的性能提升

In this video you will learn how to use the build-in object pool API in Unity Engine 2021.

Main Contents:

  1. Create a custom object pool by using Unity build-in ObjectPool type
  2. Build an easy to use generic base pool type
  3. 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