Change Split-Screen In Game
Hi there, I am making a game in which there is a main menu where I need all players to select their characters simultaneously but the actual gameplay portion is splitscreen. Is there some way to make it such that the main game is splitscreen, but the main menu is not?
asked Sep 30 '17 at 05:19 PM in Blueprint Scripting
Late response here but others might find it on google. Yes, you should make an entire new set of Blueprints for Player Controller and GameMode when you use the Main Menu. When you transfer to your game map you can change the GameMode (and along with it, controller, pawn, hud class etc) in "World Settings" on your map. Under Game Mode, just override the default game mode (main menu) with your gameplay GameMode.
In your menu game mode you can simply turn off split screen.
answered May 09 '18 at 10:26 PM
Hi, I'm also looking into that. What did you mean by "you can simply turn off split screen"? I'm talking Blueprint here. Is there a check box or a function I call?
https://www.youtube.com/watch?v=92KQZ9Crlw0 This tutorial isn't working on 4.20.3. I copied him to the letter and I always get compiler failed:
D:\My Documents\Unreal Projects\MyProject\Source\MyProject\SplitscreenController.cpp(32) : error C2027: use of undefined type 'UWorld' c:\program files\epic games\ue_4.20\engine\source\runtime\core\public\GenericPlatform/GenericPlatformMisc.h(877): note: see declaration of 'UWorld' D:\My Documents\Unreal Projects\MyProject\Source\MyProject\SplitscreenController.cpp(32) : error C2227: left of '->GetGameViewport' must point to class/struct/union/generic type D:\My Documents\Unreal Projects\MyProject\Source\MyProject\SplitscreenController.cpp(32) : error C2227: left of '->SetDisableSplitscreenOverride' must point to class/struct/union/generic type
Follow this question
Once you sign in you will be able to subscribe for any updates here