-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update manifest and readme for Object Pool package
- Loading branch information
1 parent
b072aa3
commit 8db3722
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# com.pixelwizards.objectpool | ||
|
||
Object pooling system for Unity. | ||
|
||
Documentation is online: | ||
https://www.megacrush.app/api/object-pool | ||
|
||
No editor-facing functionality. | ||
|
||
Create new Object pools with: | ||
|
||
GameObject prefab; | ||
|
||
PoolManager.AddNewObjectPool(new PoolObjectSetting() | ||
{ | ||
count = 10, | ||
prefab = prefab, | ||
}); | ||
|
||
Get an instance from the Pool: | ||
|
||
var instance = PoolManager.GetInstance(prefab); | ||
|
||
Return the Instance to the Pool: | ||
|
||
PoolManager.ReturnInstance(thisObject); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters