Hi @Justin I am having a issue with Enemy AI on Mobile the agent is not taking any damage. I use Log viewer and I found this Error :
NullReferenceException: Object reference not set to an instance of an object
Opsive.Shared.Game.ObjectPoolBase.InstantiatedWithPoolInternal (UnityEngine.GameObject instantiatedObject) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.Shared.Game.ObjectPoolBase.InstantiatedWithPool (UnityEngine.GameObject instantiatedObject) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.UltimateCharacterController.Traits.Health.Die (UnityEngine.Vector3 position, UnityEngine.Vector3 force, UnityEngine.GameObject attacker) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.CharacterHealth.Die (UnityEngine.Vector3 position, UnityEngine.Vector3 force, UnityEngine.GameObject attacker) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.Health.OnDamage (System.Single amount, UnityEngine.Vector3 position, UnityEngine.Vector3 direction, System.Single forceMagnitude, System.Int32 frames, System.Single radius, UnityEngine.GameObject attacker, System.Object attackerObject, UnityEngine.Collider hitCollider) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.CharacterHealth.OnDamage (System.Single amount, UnityEngine.Vector3 position, UnityEngine.Vector3 direction, System.Single forceMagnitude, System.Int32 frames, System.Single radius, UnityEngine.GameObject attacker, System.Object attackerObject, UnityEngine.Collider hitCollider) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.Health.Damage (System.Single amount, UnityEngine.Vector3 position, UnityEngine.Vector3 direction, System.Single forceMagnitude, System.Int32 frames, System.Single radius, UnityEngine.GameObject attacker, System.Object attackerObject, UnityEngine.Collider hitCollider) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.HitscanFire (System.Single strength) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.Shared.Game.SchedulerBase.AddEventInternal[T] (System.Single delay, Opsive.Shared.Game.ScheduledEventBase+InvokeLocation invokeLocation, System.Action`1[T] action, T value) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.Shared.Game.SchedulerBase.Schedule[T] (System.Single delay, System.Action`1[T] action, T value) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.Fire (System.Single strength) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.UseItem () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.Abilities.Items.Use.LateUpdate () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateActiveAbilities (Opsive.UltimateCharacterController.Character.Abilities.Ability[] abilities, System.Int32& abilityCount) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateUltimateLocomotion () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePositionAndRotation () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation (System.Boolean fromAnimatorMove) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.OnAnimatorMove () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.OnAnimatorMove () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Whenever I try to shoot the Enemy this error showed up.
And also this issue is only on mobile and the error is only showing in mobile. In Unity Editor Everything is working Perfect.
NullReferenceException: Object reference not set to an instance of an object
Opsive.Shared.Game.ObjectPoolBase.InstantiatedWithPoolInternal (UnityEngine.GameObject instantiatedObject) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.Shared.Game.ObjectPoolBase.InstantiatedWithPool (UnityEngine.GameObject instantiatedObject) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.UltimateCharacterController.Traits.Health.Die (UnityEngine.Vector3 position, UnityEngine.Vector3 force, UnityEngine.GameObject attacker) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.CharacterHealth.Die (UnityEngine.Vector3 position, UnityEngine.Vector3 force, UnityEngine.GameObject attacker) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.Health.OnDamage (System.Single amount, UnityEngine.Vector3 position, UnityEngine.Vector3 direction, System.Single forceMagnitude, System.Int32 frames, System.Single radius, UnityEngine.GameObject attacker, System.Object attackerObject, UnityEngine.Collider hitCollider) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.CharacterHealth.OnDamage (System.Single amount, UnityEngine.Vector3 position, UnityEngine.Vector3 direction, System.Single forceMagnitude, System.Int32 frames, System.Single radius, UnityEngine.GameObject attacker, System.Object attackerObject, UnityEngine.Collider hitCollider) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Traits.Health.Damage (System.Single amount, UnityEngine.Vector3 position, UnityEngine.Vector3 direction, System.Single forceMagnitude, System.Int32 frames, System.Single radius, UnityEngine.GameObject attacker, System.Object attackerObject, UnityEngine.Collider hitCollider) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.HitscanFire (System.Single strength) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.Shared.Game.SchedulerBase.AddEventInternal[T] (System.Single delay, Opsive.Shared.Game.ScheduledEventBase+InvokeLocation invokeLocation, System.Action`1[T] action, T value) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.Shared.Game.SchedulerBase.Schedule[T] (System.Single delay, System.Action`1[T] action, T value) (at <3261d1d1480d44a1abe2cb945dc5a01c>:0)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.Fire (System.Single strength) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Items.Actions.ShootableWeapon.UseItem () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.Abilities.Items.Use.LateUpdate () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateActiveAbilities (Opsive.UltimateCharacterController.Character.Abilities.Ability[] abilities, System.Int32& abilityCount) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.LateUpdateUltimateLocomotion () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.UpdatePositionAndRotation () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.UpdatePositionAndRotation (System.Boolean fromAnimatorMove) (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.CharacterLocomotion.OnAnimatorMove () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Opsive.UltimateCharacterController.Character.UltimateCharacterLocomotion.OnAnimatorMove () (at <6bdf56cd502b40a7ab7dc9ec10893e14>:0)
Whenever I try to shoot the Enemy this error showed up.
And also this issue is only on mobile and the error is only showing in mobile. In Unity Editor Everything is working Perfect.