I’m using Cast to node in one of my functions within a Function Library. The function is a custom Print String for debugging purposes.
For some reason the Get All Actors Of Class node returns no actors and therefore the value of the Debug Display Duration never gets read. One BP_DialogueManager class actor that I’m casting to exists in the level. Up until recently it was working fine. The funny thing is that now sometimes it works and sometimes it doesn’t.
You can try manually providing it with a World Context see if that helps, make a new actor input and wire that to the world context, and when you call the function plug a reference to self in.
I don’t think the cast to node is necessary. Try removing it. The GetAllActorsOfClass node has a drop down where you can simply choose the class of object that you wish to get.