Reply To: How do you check if agent is null?

NodeCanvas Forums Support How do you check if agent is null? Reply To: How do you check if agent is null?

#13598
Gavalakis
Keymaster

Hello,

Hmm. What “functions” do you mean more specifically? The “CheckVariable(T)”, or “Check Unity Object” condition tasks, can be used to check if a unity object is null. What did you use to use before? 🙂

ConditionLists still work the same way you describe, so that if the first condition fails, the second one will not be evaluated at all, if the ConditionList is set to “ALL TRUE” (which basically means A && B).
So, if “A” is “myGameObject != null”, but it is null, then “B” will not be evaluated at all.

Please let me know.
Thanks.

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