UE5 タイトル＆ポーズメニュー 自動で出す・出さないの分岐方法を解説 #tut
よっしーUEゲーム開発
[{'start': '0.000', 'end': '1.850', 'text': 'に向かいました English: Hello everyone, this'}, {'start': '1.850', 'end': '4.717', 'text': 'is Onion-chan from Yoshi Channel.'}, {'start': '4.950', 'end': '6.600', 'text': "Today's theme is, I'll be"}, {'start': '6.800', 'end': '11.650', 'text': 'explaining how to prevent the menu from opening again when starting a new game.'}, {'start': '11.650', 'end': '20.233', 'text': "This free game is designed so that it starts straight away, so in\nthe first place the menu doesn't appear unless you press a key, but"}, {'start': '20.233', 'end': '28.017', 'text': 'in a normal game, when you start up the game the title screen appears and you start the game by choosing New Game or Load.'}, {'start': '28.017', 'end': '36.517', 'text': "This time I'll introduce how to prepare a level specifically for the title, and how to switch whether the menu appears or not while staying at the same level."}, {'start': '37.700', 'end': '39.450', 'text': 'Title-specific levels So'}, {'start': '39.600', 'end': '44.933', 'text': "first I'll explain the strategy for preparing a level specifically for a general title."}, {'start': '44.933', 'end': '47.183', 'text': 'Create a new level. It'}, {'start': '47.183', 'end': '51.400', 'text': "can be empty if you're adding a background image to the menu."}, {'start': '55.050', 'end': '59.500', 'text': 'Next, duplicate the pause menu to create a title menu. When'}, {'start': '70.483', 'end': '76.900', 'text': "paused, Continue does nothing and just closes, but from the title it feels like a loading process. I'll"}, {'start': '76.900', 'end': '79.283', 'text': 'skip that part for now. What I'}, {'start': '79.283', 'end': '87.367', 'text': 'want to do now is to solve the problem of when the menu is open in Begin Play, and then when you open the same level in Open Level, the menu opens again. If you make it so that the menu'}, {'start': '87.367', 'end': '91.567', 'text': 'automatically opens only for title-specific levels, then if you work'}, {'start': '91.567', 'end': '97.400', 'text': 'hard to load with Continue, you\nonly need to open the open level for New Game.'}, {'start': '100.367', 'end': '102.700', 'text': 'Then in the title levels  : Just'}, {'start': '102.700', 'end': '109.217', 'text': "open the level blueprint and add a process to open the title menu to Begin Play and you'll be fine."}, {'start': '109.417', 'end': '114.433', 'text': 'Do not include a process to open the menu in Begin Play for the player controller. The'}, {'start': '121.350', 'end': '126.400', 'text': 'title menu launched from the level blueprint will be displayed at startup.'}, {'start': '127.800', 'end': '134.333', 'text': 'If you select Continue or New Game, the main game level will open, and naturally the title menu will not appear.'}, {'start': '138.050', 'end': '143.067', 'text': 'If you select New Game from Title, this confirmation dialog may not be necessary. There'}, {'start': '146.433', 'end': '148.967', 'text': 'is one important point. The'}, {'start': '151.900', 'end': '154.800', 'text': 'menu can be closed with the tab key.'}, {'start': '156.000', 'end': '165.850', 'text': "This is convenient for the pause menu, but it's a problem in the title menu, so\nin the details section of the menu body, uncheck Arrow Remove Flute. This"}, {'start': '165.850', 'end': '169.250', 'text': 'means you can remove it at the very top. No.'}, {'start': '176.317', 'end': '178.917', 'text': "Show or don't show the menu at one level?"}, {'start': '178.917', 'end': '187.917', 'text': "Next, we'll use the same level but switch between automatically displaying the menu when starting the game and when you select New Game from the menu. For now, let's"}, {'start': '187.917', 'end': '193.183', 'text': 'set it to open from Begin Play for the player controller.'}, {'start': '193.183', 'end': '197.433', 'text': "If it's exactly the same as the pause menu, we can make it common. The"}, {'start': '208.017', 'end': '210.917', 'text': 'menu now opens at startup.'}, {'start': '211.617', 'end': '213.783', 'text': 'If you select New Game here, the'}, {'start': '213.783', 'end': '217.300', 'text': 'menu will open again, which is what you were asking about.'}, {'start': '219.650', 'end': '222.683', 'text': "This has been made common, so it's the pause menu.  : We'll"}, {'start': '231.783', 'end': '236.250', 'text': 'make some changes to the open level in the processing of the New Game button. When you'}, {'start': '236.350', 'end': '242.767', 'text': 'open it, there will be an input field for options, so you can pass data here in the format "name = value". You can name the option anything you like,'}, {'start': '242.767', 'end': '249.333', 'text': 'but since it depends on whether you want to open the menu or not, the value is false.'}, {'start': '250.083', 'end': '255.750', 'text': 'This is ultimately an option that you created yourself, so you will need to write the processing yourself.'}, {'start': '256.067', 'end': '261.500', 'text': 'Go back to the player controller and add the following processing to the begin play. The'}, {'start': '261.500', 'end': '270.317', 'text': 'game mode has data called an option string, and you can use the parse option to pull out the option information passed in the open level earlier. There is no'}, {'start': '270.317', 'end': '276.183', 'text': "option when the game starts, so we are checking in the form of a negation if they don't match. Also,"}, {'start': '276.183', 'end': '281.950', 'text': 'since this is a string you created yourself, be careful not to make mistakes'}, {'start': '282.233', 'end': '287.183', 'text': 'with capitalization. We are passing false in lower case here, but the receiver has made it upper case.'}, {'start': '291.683', 'end': '294.817', 'text': 'Now the menu will be displayed when the game starts, but it will'}, {'start': '297.617', 'end': '300.783', 'text': "no longer be displayed when you click New Game. That's"}, {'start': '301.183', 'end': '303.333', 'text': "all for today's video."}, {'start': '303.333', 'end': '305.667', 'text': 'Thank you for watching. Please'}, {'start': '305.667', 'end': '310.217', 'text': "comment, like, and subscribe to the channel. I'll be"}, {'start': '310.217', 'end': '313.333', 'text': 'waiting for you in the next video. I'}, {'start': '313.750', 'end': '317.383', 'text': "wasn't able to watch Petit Con live, but they were introduced (∩´∀｀)∩"}, {'start': '317.383', 'end': '320.800', 'text': "Everyone who wasn't introduced was amazing as well. Those who"}, {'start': '320.800', 'end': '323.350', 'text': "didn't participate, please join us next time  The"}, {'start': '325.250', 'end': '332.950', 'text': 'size of the signs differs by 20%, but they are not visible at the same time and they do not move gradually like the original, so it is extremely difficult. I'}, {'start': '333.217', 'end': '336.850', 'text': 'made this game quite seriously, so please give it a try.'}]