I’m making pong as a mini project and came into a strange issue. While doing my score system I get the actor representing the score from “get all actors from class” node then “get” then set it’s text render plus 1 when a player scores.
This works fine, however, when I try to do the same thing for the opposite score actor I can’t connect the "get text render node as it does not appear, I instead need to directly cast to the score actor and change it.
This still works in the end but I’m confused as to why I can get the text from just the “get” for one actor and not the other, the two actors are exactly the same other than the name, so I’m pretty stumped.
Also the comments were mixed up at the time, so sorry if that causes confusion, but they’re irrelevent so just ignore them.
My bet is that Right Score has a Text Render and Left Score does not.
Also, Get All returns correct class already, no need to cast at all. Sometimes if you copy / paste that node or use the filter, the node does not get updated correctly. Right click it and refresh manually.
As I said the two actors are exactly the same other than name so they both have text renders and I know I shouldn’t need to cast after getting it hence my confusion. Refreshing manually seems to have fixed the issue so I believe it was indeed some sort of copy paste problem so thank you for making me aware that that is a thing.
i notice you need to compile, always do that after adding components or variables as it often fixes issues like that, may not this one but its good practice.