You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
FretBuzzObjectPool
1
+
# **FretBuzzObjectPool**
2
2
3
3
This asset will be used to get and return objects from and to the pool providing reusability and automatic creation of the object if the pool is empty.
4
4
You can use this asset for reusability of your objects.
5
5
6
6
7
-
-------- ObjectPool<T>
7
+
##-------- ObjectPool<T>
8
8
9
9
ObjectPool(string a_strObjectType, int a_iStartSize = 0)
10
10
@@ -15,7 +15,7 @@ Pool.getObject() returns a object of type T from the pool and sets it to active.
15
15
Pool.returnToPool(T obj) to return the object to the pool and deactivates the object.
16
16
Pool.returnAll() to return all objects back into the pool and deactivates all the object.
17
17
18
-
-------- IReusable
18
+
##-------- IReusable
19
19
20
20
The reusable object of type T should be derived from IReusable
21
21
-- T.onRetrievedFromPool()
@@ -25,7 +25,7 @@ will be called when the object is returned to the pool.
25
25
26
26
27
27
28
-
-------- MonoObjectPool<T>
28
+
##-------- MonoObjectPool<T>
29
29
To use an object pool for MonoBehaviour objects, use
30
30
31
31
MonoObjectPool<T>(T a_Prefab, GameObject a_Parent, int a_iStartSize = 0)
0 commit comments