FlowCanvas Forums › Support › Checking For Component before writing to Blackboard › Reply To: Checking For Component before writing to Blackboard
Hello Charles!
You could use the GetComponent reflected node and check if it’s null, which is done with the IsValid node in FlowCanvas.
Just remember to add your types in the Preferred Types Editor (Window/NodeCanvas/PreferredTypes Editor), so that you can work with them easier.
I have attached an example image for you here. I will make it possible in the next version that a unity engine object can also be linked directly at a boolean input which will return true/false based based on if it’s null, similar to how it’s done in code.
I can tell you how to add this by the way now, if you want to. It’s easy.
Let me know if this works for you, or you were looking at a different solution.
Thanks