Sorry if this is a stupid question, or if I missed something, but I’m extremely new to all this.
When he created the two int32’s Called ViewportSizeX, and ViewportSizeY, it automatically knew the viewport size.
Where is it defined? When I looked at the documentation, I found that you’d need to do a bit of this:
//Viewport Size
const FVector2D ViewportSize = FVector2D(GEngine->GameViewport->Viewport->GetSizeXY());
//Viewport Center!
const FVector2D ViewportCenter = FVector2D(ViewportSize.X/2, ViewportSize.Y/2);
to get it. Where did he do that?