What is the difference between if (object) and if (isValid(Object))?

Hi! I would like to know the difference in using or not isValid for checking the validity of an object

If(object) just checks the null condition of the pointer. Is valid checks that along with whether or not the actor is set to be destroyed… In other words waiting for garbage collection and potentially dangerous to use.


I got it. Can be a rare situation when the object is not null yet but is about to be destroyed and isValid checks null and some readyfordesyroyanddangerous flag so is better to stick with isValid