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

指導項目工作原理

您的工作空間就是瀏覽器中的雲桌面,無需下載

在分屏視頻中,您的授課教師會為您提供分步指導

常見問題

常見問題

還有其他問題嗎?請訪問 學生幫助中心