com.amanotes.prefabpool 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.3] - 2026-04-07
4
+
5
+ ### Fixed
6
+ - `PoolEntry.Return`: renamed pooled GameObjects back to their entry `id` in Editor for easier hierarchy debugging (`PrefabPool.cs`)
7
+
3
8
  ## [1.0.2] - 2026-04-06
4
9
 
5
10
  ### Fixed
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # PrefabPool
2
2
 
3
3
  **Package:** `com.amanotes.prefabpool`
4
- **Version:** 1.0.1
4
+ **Version:** 1.0.3
5
5
 
6
6
  Generic object pooling system for Unity with lifecycle callbacks and material pooling support.
7
7
 
@@ -30,7 +30,7 @@ Add the package to your Unity project via `Packages/manifest.json`:
30
30
  ```json
31
31
  {
32
32
  "dependencies": {
33
- "com.amanotes.prefabpool": "1.0.1"
33
+ "com.amanotes.prefabpool": "1.0.3"
34
34
  },
35
35
  "scopedRegistries": [
36
36
  {
@@ -41,6 +41,7 @@ namespace Amanotes.Core
41
41
  _pool.RemoveAt(lastIndex);
42
42
  }
43
43
 
44
+ bool fromPool = resultGameObject != null;
44
45
  if (resultGameObject == null)
45
46
  {
46
47
  // Create prefab inside the pool's transform
@@ -77,6 +78,9 @@ namespace Amanotes.Core
77
78
  gameObject.SetActive(false);
78
79
  t.SetParent(poolParent, false);
79
80
  t.localPosition = Vector3.zero;
81
+ #if UNITY_EDITOR
82
+ gameObject.name = id;
83
+ #endif
80
84
  _pool.Add(gameObject);
81
85
  }
82
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.amanotes.prefabpool",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "displayName": "Amanotes Prefab Pool",
5
5
  "description": "Generic object pooling system for Unity",
6
6
  "unity": "2022.3",