Making a macro to validate objects in my project, but it would be helpful to know what object failed to validate by printing its name. Currently Get Object Name returns None, because its not valid…
Inherently, by the nature of the IsValid node, that wouldn’t be possible.
IsValid returns true if the object exists, and false if it doesn’t. If it returns false- that means what is passed in as the object is null. There is no data that can be gleamed from null.
Also, the timeout is not very helpful in general use. This macro would only be helpful in incredibly niche situations, and those niche situations should probably be avoided. Delegates are your friend. I also can’t really think of a situation where I’d need to know in the viewport if a value is invalid- I’d probably just handle it with the Invalid exec pin.
But if you have a situation I’m not thinking of, you might want to have the macro accept a caller that defaults to self. You could then print “[VALIDATION - CallerName] Failed to validate object”. This would tell you which object failed.