1 / 13

Unity Game Development

Unity Game Development. UI, XML, Localization, Scene Load & Build .exe. Class overview. Class 7 Revision Main Menu Button OnClicked Logic XML Data Localization Data Localization Code Building . exe Loading scenes & Quitting Advanced: UI selection Advanced: Options menu. Revision.

cschumacher
Download Presentation

Unity Game Development

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Unity Game Development UI, XML, Localization, Scene Load & Build .exe

  2. Class overview • Class 7 Revision • Main Menu • Button OnClickedLogic • XML Data • Localization Data • Localization Code • Building .exe • Loading scenes & Quitting • Advanced: UI selection • Advanced: Options menu

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

  4. Main Menu • Create Scene • Add Canvas • Add 4x Text • Add 3x Button • Setup anchor alignment • Setup Hover & Select Color • Setup font • Implement OnClicked code

  5. Button onclicked Logic • OnClicked can call functions on any object

  6. XML Data • XML stands for eXtensibleMarkup 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 W3C Recommendation.

  7. 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).

  8. Localization code • Create LocalizationManager 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

  9. 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

  10. Loading Scenes & Quitting • Use SceneManager to Load Scenes • Application.Quit() to shutdown game

  11. 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

  12. Advanced: Options Menu • Add UIManager Singleton • Add every UI State to UIManager • Create new GameObject called OptionsMenu • Populate with UI text & button entries

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

More Related