Why does Unreal provide the viewpoint as two out variables, rather than say returning a PlayerViewPoint struct that contains references to them?

I’m new to C++ so there’s probably something key I’m missing :slight_smile:

Maybe it changes it’s output depending on something we don’t know about yet?

I actually totally agree with you btw, I really think these flexible out variables are just developer laziness. The whole point of using a strictly typed language is to have predictable outcomes that can be caught by the compiler and not wait until runtime to find errors.

There must be more to these out variables than I currently understand…

Privacy & Terms