I try to use Pro Pooling in my code because i have often issues on my IOS Devices (it's a known problem).
I have a Canvas Panel UI which use my own class, inside this class the below elements :
In the Start method :
_pool = new Pool<PoolItem>(wordTile, 20);
In other initialization method :
var poolItem = _pool.GetFromPool (new Vector3 ((_x*80)-280, _y, -80), Quaternion.identity, this.transform);
poolItem.GetComponent<LetterWord> ().setLetterIndex (_index); ==> used to change texture on my object
It works great on Unity Editor, i can see objects move from the root to my Canvas Panel but not on IOS Device (and i don't know on Android for the moment).
I have this log on execution :
Code: Select all
NullReferenceException: A null value was found where an object instance was required.
at FlipWebApps.ProPooling.Scripts.Pool`1[T].ClearPool () [0x00000] in <filename unknown>:0
at MapGenerator.Start () [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
NullReferenceException: A null value was found where an object instance was required.
at FlipWebApps.ProPooling.Scripts.Pool`1[T].ClearPool () [0x00000] in <filename unknown>:0
at Word.Start () [0x00000] in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
Unloading 3 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 9.001791 ms
Thanks
