CanSeeTargetAny Task doesn’t check if each target if valid

NodeCanvas Forums Support CanSeeTargetAny Task doesn’t check if each target if valid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18742
    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.

    #18745
    Gavalakis
    Keymaster

    Hey. Great, thanks for letting me know! 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

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