CanSeeTargetAny Task doesn’t check if each target if valid

Forums đź’¬ NodeCanvas ⚙️ Support CanSeeTargetAny Task doesn’t check if each target if valid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15159
    dmorley
    Participant

      Hi

      I’ve had an issue using the CanSeeTargetAny task in that if a gameobject in the target list gets destroyed before the target list can be updated, this task tries to access a non-existent object and throws an missing reference exception.

      If you simply check to make sure each target is not null, I think it works as expected.

      #15160
      Gavalakis
      Keymaster

        Hey. Great, thanks for letting me know! 🙂

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.