UNITY GAME DEVELOPMENT UI XML Localization Scene Load













- Slides: 13

UNITY GAME DEVELOPMENT UI, XML, Localization, Scene Load & Build. exe

CLASS OVERVIEW Class 7 Revision Main Menu Button On. Clicked Logic XML Data Localization Code Building. exe Loading scenes & Quitting Advanced: UI selection Advanced: Options menu

REVISION Project Settings - Input Setting up Keyboard & Xbox Controller Input Creating 2 Players Shooting a Fireball Particle Emitter Events & Delegates

MAIN MENU Create Scene Add Canvas Add 4 x Text Add 3 x Button Setup anchor alignment Setup Hover & Select Color Setup font Implement On. Clicked code

BUTTON ONCLICKED LOGIC On. Clicked can call functions on any object

XML DATA XML stands for e. Xtensible Markup Language. XML is a markup language much like HTML. XML was designed to store and transport data. XML was designed to be self-descriptive. XML is a W 3 C Recommendation.

LOCALIZATION DATA Localization refers to the adaptation of a product, application or document content to meet the language, cultural and other requirements of a specific target market (a locale).

LOCALIZATION CODE Create Localization. Manager Singleton Create enum of available Languages Load Localization files from Resources Folder Create Dictionary of Key and Value from XML Retrieve Localized string from Data

BUILDING. EXE File > Build Settings… Setup Scenes in “Scenes in Build” Open each scene and click “Add Open Scenes” Select Build and choose Build Folder Location

LOADING SCENES & QUITTING Use Scene. Manager to Load Scenes Application. Quit() to shutdown game

ADVANCED: UI SELECTION Implement Controller & Keyboard keys support Add cooldown & keep track of selection Base Index Max on amount of Buttons in Menu Clamp Index values so Buttons are valid Call “Select” on Selected Button Set cooldown between each selection update

ADVANCED: OPTIONS MENU Add UIManager Singleton Add every UI State to UIManager Create new Game. Object called Options. Menu Populate with UI text & button entries

Q&A Do you have any questions related to the topics mentioned?