I’m struggling with preventing my Gamemode overriding the camera and default player spawning…
As an example, I want to make a menu… every time I press play in the editor it keeps switching to the FPS default controller… so I created a new game mode and disabled the default Pawn and game session classes. that stopped player input etc. so it sort of worked.
Trouble is, if I change my view in the viewport and then press play again it updates the ‘launch’ view to where I last was in the viewport.
I’m new to all of this and appreciate its a basic question but for reference I found this tutorial and tried following it but half the settings he can access are either greyed out or not present in my UE5 editor… https://www.youtube.com/watch?v=EjSf1Hru_u0
Hi, @SAZ_Anim! Best practice for creating a main menu is to create a new blank level and work from there. I’m not sure what version you are working in, so here are some tutorials for UE4 and UE5 for the basics of making menus.
@Quetzalcodename thanks for your help… I’m still not lucking out on it but those videos are definitely super helpful for my self learning. I’m coming over from the Unity community and its safe to say UE is quite different
I’m using UE5.01, issue is the camera keeps rotating to the viewport view and I don’t know how to change that. It happens even with total new scenes.
In Simple terms I just want a scene with the camera facing in one direction with the user not able to do anything (aside from interact with the UI but this bit I can do)
Hey, @SAZ_Anim! I completely understand. So when you open (Edit → Project Settings → Project → Maps & Modes) what is your default game mode set to? There is an option to set it to none. If you are having trouble setting up the static camera, here is a great video on how to do so, as well as the quick start guide for setting up user interface using UMG and creating a main menu guide.
Thanks again. I don’t have an option to select ‘None’ (I can do this in the World settings in the level but that seems to be over ridden by the project setting.)
I tried to work around that by making my own default game mode, which I changed some of the parameters… Game Session Class, HUD Class and Pawn Class I can set to ‘None’ in this but the rest I have to pick a class from the drop down list and there isn’t an option for None. There Also isn’t any reference to the camera spawning which becomes default
the easy thing would simply to be able to set ‘None’ in the project settings and then nothing would spawn by default like no camera, player etc etc but Im probably missing something here.
Hey, @SAZ_Anim! After doing some digging it seems that you can no longer set the game mode to “none” but you can set it to “gamemode” which you have already done. Though, I don’t believe changing your game mode is what you need at this point. If the previous guides did not work for you, here is another guide for setting up a static camera in your level for version 4.27 that should be what you are looking for.
sorry, rephrase the question… if I follow what you said above, and then once the new level is created… if I do nothing and immediately press play, a whole bunch of stuff is spawned (see screenshot) and I know its as a result of the GameMode from the project settings… basically have I understood it right that there is no way to prevent all of those from spawning in UE5.
To set the GameMode to None, you can manually set it in DefaultEngine.ini like this:
[/Script/EngineSettings.GameMapsSettings]
GlobalDefaultGameMode=None
If you want to override GameMode settings, you can go to World Settings → GameMode Override