Coder Social home page Coder Social logo

ryanxudev / unityobjectpooltutorial Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 4.0 20 MB

Unity自带对象池API教程。

License: Creative Commons Zero v1.0 Universal

ShaderLab 41.90% C# 58.10%
unity unity2d unity3d tutorial tutorials objectpool objectpool-pattern objectpooling objectpooler

unityobjectpooltutorial's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.