Using “Validated Gets” in Unreal Engine Blueprints

Always make sure your variables have proper values. You can use Unreal's "Is Valid" node, or you can convert your getter into a "validated get" to save space.

Developers should always check their variables for proper values. If you’re trying to store a reference to an object inside a variable, before using it, you should check if that reference is valid. Unreal Engine has a “Is Valid” node for that:

However, there is a quicker way. Create a normal get reference to your non-primitive variable. Once the node is on the blueprint, if you right-click it, you’ll see “convert to validated get”.

Click that option, and you’ll see the node change. You’ll now have 2 more execution pins. With that, you can perform different actions depending on if the reference is valid or not.

That’s a small tip that’ll save you a little space during development. I hope it helps. If you have any questions, leave a comment below.

Leave a Reply

Your email address will not be published. Required fields are marked *