I implemented the interface in a class derived from HUD. However I can use the interface directly using a reference to the parent class without casting.
This is great!!
However I can’t find a way to do the same in C++. (Obviously without using casting… I know if it’s cast I can do it).
So I looked in the documentation and I didn’t see anything about it.
What is the trick then?
Can i do the same with Unreal C++ or is it something that is only available for bluprints?
This obviously won’t work if you need return values from interface calls. But since the call is conditional, not sure what kind of return value you’d expect when it’s not called anyways.