I’m having an issue when trying to use object class references that are stored as variables. What I have is a raycast running every frame to get the object that the main camera is looking at. That part works fine. I then use a Get Class node to get the class reference of the object the raycast hit. I then want to use that in a comparison on another section of the blueprint. Everything works fine when I just draw a link directly from the output of the Get Class node to the Equals node I want to use it in, but when I store the value in a variable using a Set node and then call it from where I need it, the comparison comes back negative. I can’t even see what is being stored in the variable, because I can’t find a way to print it or see it’s value. Am I missing something?
This Setup Works:
And This Does Not: