From GameMode OnBeginPlay() I’m spawning a Custom class which manages the logic for my game, after i spawn the class i call a method from which i’m trying the above code. It just works inside the editor, in standalone mode or when i launch it, size X and size Y are 0