Skip to content

Object Pooling Optimized way of grabbing object vs Instantiate & Destroy

Notifications You must be signed in to change notification settings

leztusi/ObjectPooler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Object Pooler

Object Pooling help optimizing games by instantiating all the recycable prefabs on limited amount then calling them when needed instead of instantiating and destroy.

Usage

  • Make sure you have the Object Pooler Prefab located at 'Resources' folder.
  • You can add prefabs on Object Pooler Prefab to call later.
  • each pooled prefabs should have "ObjectPoolerPoolBack" script to Pool back the object.
  • You Grab the pooled object with

GrabObject(int Index, Vector3 Position, Quaternion Rotation)

GrabObject(string Name, Vector3 Position, Quaternion Rotation)

About

Object Pooling Optimized way of grabbing object vs Instantiate & Destroy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages