Question about Building in Editor and Compiling in Visual Studio

Hello. I am a newbie. My question is, i am able to build the shooter game in editor and play it with bots. So what is the visual studio compiling for? to make it run in other computers which doesn’t have editor? thanks

building the game is different from compiling. A compile just generates all the things that devices and UE4 will use. A Compile just creates all of the binary versions of the code that computers read. A build removes all of the UE4 editor and just leaves the game so to speak. Im not sure how the build actually works however it just takes all of the compiled code and create an EXE for each system so windows uses exe however mac uses something else.