GorkaGames
Member
I get the following error (and therefore not instancing the game object) when I try to spawn the explosion on the Health script (spawned objects on death)
Unable to pool Flack Aerial Random(Clone) (instance -144360): the GameObject was not instantiated with ObjectPool.Instantiate 86,92375
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Game.ObjectPoolestroyInternal(GameObject) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/ObjectPool.cs:254)
Opsive.UltimateCharacterController.Game.ObjectPoolestroy(GameObject) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/ObjectPool.cs:242)
Opsive.UltimateCharacterController.Objects.Explosionestroy() (at Assets/Opsive/UltimateCharacterController/Scripts/Objects/Explosion.cs:220)
Opsive.UltimateCharacterController.Game.ScheduledEvent:Invoke() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:80)
Opsive.UltimateCharacterController.Game.Scheduler:Invoke(ScheduledEventBase, Int32) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:657)
Opsive.UltimateCharacterController.Game.Scheduler:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:308)
Any idea? I don't see the gameobject being pooled o the Game Controller. Thanks.
Unable to pool Flack Aerial Random(Clone) (instance -144360): the GameObject was not instantiated with ObjectPool.Instantiate 86,92375
UnityEngine.Debug:LogError(Object)
Opsive.UltimateCharacterController.Game.ObjectPoolestroyInternal(GameObject) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/ObjectPool.cs:254)
Opsive.UltimateCharacterController.Game.ObjectPoolestroy(GameObject) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/ObjectPool.cs:242)
Opsive.UltimateCharacterController.Objects.Explosionestroy() (at Assets/Opsive/UltimateCharacterController/Scripts/Objects/Explosion.cs:220)
Opsive.UltimateCharacterController.Game.ScheduledEvent:Invoke() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:80)
Opsive.UltimateCharacterController.Game.Scheduler:Invoke(ScheduledEventBase, Int32) (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:657)
Opsive.UltimateCharacterController.Game.Scheduler:Update() (at Assets/Opsive/UltimateCharacterController/Scripts/Game/Scheduler.cs:308)
Any idea? I don't see the gameobject being pooled o the Game Controller. Thanks.