/// <summary> /// Event handler called when new GameMode is created. /// </summary> /// <remarks> /// This is called when a GameModeBase is created for this instance. It allows the /// Game to create a C# GameModeBase subclass. /// </remarks> /// <param name="gameModeBase">The UE4 GameModeBase Object</param> /// <param name="inMapURL">The URL for the map being loaded</param> protected virtual void SetGameModeForURL(GameModeBase gameModeBase, string inMapURL) { if (GameModeBaseType != null) { GameMode = (GameModeBase)UObject.CastTo((UObject)gameModeBase, GameModeBaseType); } }