Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unity Game Development

Similar presentations


Presentation on theme: "Unity Game Development"— Presentation transcript:

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

2 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

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 eXtensible 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 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?


Download ppt "Unity Game Development"

Similar presentations


Ads by Google