Object-Pooling with C# in Unity

提供方
Coursera Project Network
在此指导项目中,您将:

Create an Object-Pooler that instantiates and manages a collection of GameObjects.

Write a C# script that spawns GameObjects on a specified schedule.

Create assets to spawn and destroy objects, including particle effects.

Clock1.5 hours
Beginner初级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

In this one-hour, project-based course, you'll learn about the concept of object-pooling and its benefits in game-design. You'll learn how to write a simple class that will instantiate and store GameObjects for repeated reuse. You'll write methods that will allow the activation, return and recycling of the objects, to greatly improve memory and CPU efficiency of your games. The guided project will introduce you to the following coding concepts: - Instantiating, activating, repositioning and deactivating GameObjects - Pooling GameObjects in Queues - Spawning GameObjects from Pools

您要培养的技能

  • Video-game Development
  • C sharp (C#) Programming Language
  • Unity 3D
  • Unity
  • Application development

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Introduction and License Activation

  2. Create a Sample Prefab for Pooling

  3. Create the Object Pooler

  4. Create a Basic Spawner

  5. Return the Object to the ObjectPool

  6. Create a Pool for Explosion Effects

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心