SlideShare a Scribd company logo
Lecture 5: Finish the Game &

Deploying to iOS and Android

for Google Cardboard
Dr. Kobkrit Viriyayudhakorn

iApp Technology Limited

kobkrit@iapp.co.th
ITS488 (Digital Content Creation with Unity - Game and VR Programming)
Show Score on GameOver Scene
• When you change the
scene. All useful game
objects are gone.

• Make ScoreCount
survive the next scene.

• Add
DontDestroyOnLoad(g
ameObject); in the
Start Method.
ScoreCount Keep Creatings 

When User Press "Play Again?"
Solve by ScoreAbsorber
• Create a new ScoreAbsorber GameObject in Scene #3 (Gameover scene)

• Create a new C# Script ScoreAbsorber.cs

• Drag the ScoreAbsorber.cs to associated with GameObject

• Write down the following code.
ScoreAbsorber.cs
Exercise 1: Display Score on GameOver
• Create a new GameOverScoreDisplay C# file.

• Create a new Text item.

• Associate between GameOverScoreDisplay and Text.

• Find the ScoreAbsorber and update the text.
Importing the Asset Model
1. Download Asset Model

at https://www.dropbox.com/s/
q9xup1axi5m8lm8/Asset-Pack.zip?
dl=0We gonna import the asset model from Joongly.

http://joongly.com/index.php?route=product/product&product_id=62
Importing Package
2. Assets > Import Package > Custom Package...

Choose "ShootHoopKit.unitypackage"
3. Make sure that select everything

and then select "Import"
4. Now you get Assets of the "ShootHoopKit"
Add Ringboard into the Scene
1. Drag and Drop "RingBoard" 2. Make it position correctly by using

"Move", "Rotate", "Scale"
Exercise 2: Build Level from Assets.
• Duplicate the RingBoard Prefab for another 2 board

• Position them correctly around your scene.

• Remove the unnecessary block.

• Replace the ball that gets shot.
1. Duplicate the RingBoard Prefab for another 2 board.

Position them correctly around your scene.

And play.
2. Drag and drop the Ball prefab to "Ball Launcher"
And "Play"



**Adjust Ball Speed to make it playable**
Adding the Trigger
1. Remove all unused Target blocks

Select Them > Delete
2. Right click at the Ringboard and create empty.
1. Rename it as "Trigger", Move it at the hole of the Backboard, and Add Box Collider
2. Check "IsTrigger" 3. Add the new C# file

"GoalTrigger"
4. Drag and drop

code to
the Trigger.
Have the following code...
Exercise 3
• Play button, to test the game.

• Duplicate it to multiple backboard

• Make the score to increase become public and adjustable in Unity.
Google Cardboard

Deployment
We need the newest version of Unity
• Install the newest setup of the following files

• Unity-2017.2.0f3.pkg

• UnitySetup-iOS-Support-for-Editor-2017.2.0f3.pkg

• UnitySetup-Android-Support-for-Editor-2017.2.0f3.pkg

• Android-Studio-IDE-171.4408382-mac.dmg

• Xcode 9.1
Download the Previous Lecture Code
http://github.com/kobkrit/VR_basketball
Build Unity for iOS
• Install Unity iOS Build Support

• Reopen the Unity & Switch Platform

• Xcode

• Use the following Apple Developer ID

• Username: kobkrit@gmail.com

• Password: SIITsiit1
Install iOS Build Support
1. Open File > Build Settings > iOS >

Click on "Open Download Page"
2. It will download the package.
3. Follow the install instruction. After completed,
Restart the unity again.
4. Select iOS > Tap Switch Platform
5. It will take a while
6. Press Build and Run,

It will prompt you for enter the iOS project directory.

You can select any folder.
7. If you encounter the API update Required

Press "I Made a Backup. Go Ahead!"
8. This will take a while... 9. When it is finished, the Xcode will show up.

Go to tab "General" > Select "Unity-iPhone".
In Signing and Team Selection Box, Click at "None"

and then "Add an Account..."
10. Write down your apple id’s username and password

• Use the following Apple Developer ID

• Username: kobkrit@gmail.com

• Password: SIITsiit1
11. You will see the above error, make change on the 

Bundle identifier to "com.kobkrit.{your-student-id}

Example: com.kobkrit.4722791763

and then press "Tab" 



You will see as below.
12. Redo it again for "Unity-iPhone Tests Target"

Select a Team
13. Plug-in your iPhone to machine.

Select it as the target.

And press "Play" button
Enabling VR
1. Open File > Build Settings > iOS >

Click on "Player Setting"
2. At the XR Settings, Check at the Virtual Reality Supported

Then press +, Choose "Cardboard"
3. Press "Build And Run" again.
4. Re-assign Developer Team in Xcode,

and Re-enter App Identifier.

Hit "Play" Button.
Build Unity for Android
• Install Unity Android Build Support

• Install Android Studio

• Download & Install Android SDK

• Enable USB Debugging on Android Device

• Connect Android Device to the SDK

• Config Android SDK Path in Unity
Install Android Studio
To install Android Studio on your
Mac, proceed as follows:
1.Launch the Android Studio
DMG file.
2.Drag and drop Android Studio
into the Applications folder,
then launch Android Studio.
3.Select whether you want to
import previous Android
Studio settings, then
click OK.
4.The Android Studio Setup
Wizard guides you though the
rest of the setup, which
includes downloading
Android SDK components
that are required for
development.
That's it! The following video
shows each step of the
recommended setup procedure.
Enable Android USB Debugger
Settings > About Phone > Build number > Tap it 7 times to become developer
Enable Android USB Debugger #2
Settings > Developer Options > USB Debugging
Install Unity Android Build Support
1. Open File > Build Settings > Android

Click on "Open Download Page"
2. It will download the package.
3. Follow the install instruction. After completed,
Restart the unity again.
4. Plug in the Android phone to machine via USB cable.

Press "Player Settings..."
5. Look at the right, At the Other Settings > Identification,

Make change the Package Name to

com.Kobkrit.BasketBall



Change Target API Level to Android 7.1

Minimum API Level to Android 6.0

6. Select Android 

Change Build System -> Gradle (New)
Enable Development Build

Press Build And Run
7. Save the Android Project to any location you like.
8. It will take a while..
Unity Google VR Cardboard Deployment on iOS and Android

More Related Content

What's hot

38199728 multi-player-tutorial
38199728 multi-player-tutorial38199728 multi-player-tutorial
38199728 multi-player-tutorial
alfrecaay
 
Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8
Shahed Chowdhuri
 
Day 4: Android: UI Widgets
Day 4: Android: UI WidgetsDay 4: Android: UI Widgets
Day 4: Android: UI WidgetsAhsanul Karim
 
IOS Storyboards
IOS StoryboardsIOS Storyboards
IOS Storyboards
Muhammad Nabeel Arif
 
Integrating Google Play Games
Integrating Google Play GamesIntegrating Google Play Games
Integrating Google Play Games
Platty Soft
 
IOS- Designing with ui tool bar in ios
IOS-  Designing with ui tool bar in iosIOS-  Designing with ui tool bar in ios
IOS- Designing with ui tool bar in ios
Vibrant Technologies & Computers
 
Review chapter 1 3 part 2
Review chapter 1 3 part 2Review chapter 1 3 part 2
Review chapter 1 3 part 2cbrmiller
 
Mule java part-2
Mule java part-2Mule java part-2
Mule java part-2
Karnam Karthik
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
Rajkattamuri
 
Fewd week8 slides
Fewd week8 slidesFewd week8 slides
Fewd week8 slides
William Myers
 

What's hot (14)

38199728 multi-player-tutorial
38199728 multi-player-tutorial38199728 multi-player-tutorial
38199728 multi-player-tutorial
 
Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8Construct 2: Exporting & Publishing to Web, Win8 and WP8
Construct 2: Exporting & Publishing to Web, Win8 and WP8
 
Day 4: Android: UI Widgets
Day 4: Android: UI WidgetsDay 4: Android: UI Widgets
Day 4: Android: UI Widgets
 
IOS Storyboards
IOS StoryboardsIOS Storyboards
IOS Storyboards
 
Android development module
Android development moduleAndroid development module
Android development module
 
Android how to hellowidget
Android how to hellowidgetAndroid how to hellowidget
Android how to hellowidget
 
Integrating Google Play Games
Integrating Google Play GamesIntegrating Google Play Games
Integrating Google Play Games
 
IOS- Designing with ui tool bar in ios
IOS-  Designing with ui tool bar in iosIOS-  Designing with ui tool bar in ios
IOS- Designing with ui tool bar in ios
 
Win8 device Log in
Win8 device Log inWin8 device Log in
Win8 device Log in
 
Review chapter 1 3 part 2
Review chapter 1 3 part 2Review chapter 1 3 part 2
Review chapter 1 3 part 2
 
Introduction
IntroductionIntroduction
Introduction
 
Mule java part-2
Mule java part-2Mule java part-2
Mule java part-2
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
 
Fewd week8 slides
Fewd week8 slidesFewd week8 slides
Fewd week8 slides
 

Similar to Unity Google VR Cardboard Deployment on iOS and Android

Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in Unity
NexusEdgesupport
 
Easy coding a multi device game with FireMonkey
Easy coding a multi device game with FireMonkeyEasy coding a multi device game with FireMonkey
Easy coding a multi device game with FireMonkey
pprem
 
Android Application Development Environment Setup
Android Application Development Environment SetupAndroid Application Development Environment Setup
Android Application Development Environment Setup
Ian Pinto
 
Cross platform game development
Cross platform game developmentCross platform game development
Cross platform game development
Jerel Hass
 
PICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATIONPICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATION
Sebastian Restrepo
 
Getting started with immersive technologies
Getting started with immersive technologiesGetting started with immersive technologies
Getting started with immersive technologies
Uchechukwu Obimma
 
Unity workshop
Unity workshopUnity workshop
Unity workshop
fsxflyer789Productio
 
How to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptxHow to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptx
MSivani
 
android studio
 android studio android studio
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
Aravindharamanan S
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
Aravindharamanan S
 
Installation and your first code
Installation and your first codeInstallation and your first code
Installation and your first code
Gideros Mobile
 
Making apps for the Apple TV
Making apps for the Apple TVMaking apps for the Apple TV
Making apps for the Apple TV
Sally Shepard
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
RebaMaheen
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
llflowe
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
bellflower42
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
amaranthbeg143
 
Gamemaker lesson 1
Gamemaker lesson 1Gamemaker lesson 1
Gamemaker lesson 1
iain bruce
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
bellflower82
 

Similar to Unity Google VR Cardboard Deployment on iOS and Android (20)

Unity - Essentials of Programming in Unity
Unity - Essentials of Programming in UnityUnity - Essentials of Programming in Unity
Unity - Essentials of Programming in Unity
 
Easy coding a multi device game with FireMonkey
Easy coding a multi device game with FireMonkeyEasy coding a multi device game with FireMonkey
Easy coding a multi device game with FireMonkey
 
Android Application Development Environment Setup
Android Application Development Environment SetupAndroid Application Development Environment Setup
Android Application Development Environment Setup
 
Cross platform game development
Cross platform game developmentCross platform game development
Cross platform game development
 
PICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATIONPICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATION
 
Getting started with immersive technologies
Getting started with immersive technologiesGetting started with immersive technologies
Getting started with immersive technologies
 
Unity workshop
Unity workshopUnity workshop
Unity workshop
 
Pong
PongPong
Pong
 
How to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptxHow to Install and Set up Android Studio.pptx
How to Install and Set up Android Studio.pptx
 
android studio
 android studio android studio
android studio
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Android wear notes
Android wear notesAndroid wear notes
Android wear notes
 
Installation and your first code
Installation and your first codeInstallation and your first code
Installation and your first code
 
Making apps for the Apple TV
Making apps for the Apple TVMaking apps for the Apple TV
Making apps for the Apple TV
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
Gamemaker lesson 1
Gamemaker lesson 1Gamemaker lesson 1
Gamemaker lesson 1
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
 

More from Kobkrit Viriyayudhakorn

Thai E-Voting System
Thai E-Voting System Thai E-Voting System
Thai E-Voting System
Kobkrit Viriyayudhakorn
 
Thai National ID Card OCR
Thai National ID Card OCRThai National ID Card OCR
Thai National ID Card OCR
Kobkrit Viriyayudhakorn
 
Chochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service RobotChochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service Robot
Kobkrit Viriyayudhakorn
 
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
Kobkrit Viriyayudhakorn
 
Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)
Kobkrit Viriyayudhakorn
 
How Emoticon Affects Chatbot Users
How Emoticon Affects Chatbot UsersHow Emoticon Affects Chatbot Users
How Emoticon Affects Chatbot Users
Kobkrit Viriyayudhakorn
 
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
Kobkrit Viriyayudhakorn
 
Check Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching PresentationCheck Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching Presentation
Kobkrit Viriyayudhakorn
 
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
Kobkrit Viriyayudhakorn
 
[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)
Kobkrit Viriyayudhakorn
 
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
Kobkrit Viriyayudhakorn
 
Lecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase AuthenticationLecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase Authentication
Kobkrit Viriyayudhakorn
 
Thai Word Embedding with Tensorflow
Thai Word Embedding with Tensorflow Thai Word Embedding with Tensorflow
Thai Word Embedding with Tensorflow
Kobkrit Viriyayudhakorn
 
Lecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-NativeLecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-Native
Kobkrit Viriyayudhakorn
 
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
Kobkrit Viriyayudhakorn
 
Startup Pitching and Mobile App Startup
Startup Pitching and Mobile App StartupStartup Pitching and Mobile App Startup
Startup Pitching and Mobile App Startup
Kobkrit Viriyayudhakorn
 
React Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + AuthenticationReact Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + Authentication
Kobkrit Viriyayudhakorn
 
React Native Firebase
React Native FirebaseReact Native Firebase
React Native Firebase
Kobkrit Viriyayudhakorn
 
React-Native Lecture 11: In App Storage
React-Native Lecture 11: In App StorageReact-Native Lecture 11: In App Storage
React-Native Lecture 11: In App Storage
Kobkrit Viriyayudhakorn
 
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
Kobkrit Viriyayudhakorn
 

More from Kobkrit Viriyayudhakorn (20)

Thai E-Voting System
Thai E-Voting System Thai E-Voting System
Thai E-Voting System
 
Thai National ID Card OCR
Thai National ID Card OCRThai National ID Card OCR
Thai National ID Card OCR
 
Chochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service RobotChochae Robot - Thai voice communication extension pack for Service Robot
Chochae Robot - Thai voice communication extension pack for Service Robot
 
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
ศักยภาพของ AI สู่โอกาสใหม่แห่งการแข่งขันและความสำเร็จ (Thai AI updates in yea...
 
Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)Thai Text processing by Transfer Learning using Transformer (Bert)
Thai Text processing by Transfer Learning using Transformer (Bert)
 
How Emoticon Affects Chatbot Users
How Emoticon Affects Chatbot UsersHow Emoticon Affects Chatbot Users
How Emoticon Affects Chatbot Users
 
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
หัวใจของปัญญาประดิษฐ์ (Gradient Descent ทำงานอย่างไร)
 
Check Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching PresentationCheck Raka Chatbot Pitching Presentation
Check Raka Chatbot Pitching Presentation
 
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
[Lecture 3] AI and Deep Learning: Logistic Regression (Coding)
 
[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)[Lecture 4] AI and Deep Learning: Neural Network (Theory)
[Lecture 4] AI and Deep Learning: Neural Network (Theory)
 
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
[Lecture 2] AI and Deep Learning: Logistic Regression (Theory)
 
Lecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase AuthenticationLecture 12: React-Native Firebase Authentication
Lecture 12: React-Native Firebase Authentication
 
Thai Word Embedding with Tensorflow
Thai Word Embedding with Tensorflow Thai Word Embedding with Tensorflow
Thai Word Embedding with Tensorflow
 
Lecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-NativeLecture 3 - ES6 Script Advanced for React-Native
Lecture 3 - ES6 Script Advanced for React-Native
 
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
สร้างซอฟต์แวร์อย่างไรให้โดนใจผู้คน (How to make software that people love)
 
Startup Pitching and Mobile App Startup
Startup Pitching and Mobile App StartupStartup Pitching and Mobile App Startup
Startup Pitching and Mobile App Startup
 
React Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + AuthenticationReact Native Firebase Realtime Database + Authentication
React Native Firebase Realtime Database + Authentication
 
React Native Firebase
React Native FirebaseReact Native Firebase
React Native Firebase
 
React-Native Lecture 11: In App Storage
React-Native Lecture 11: In App StorageReact-Native Lecture 11: In App Storage
React-Native Lecture 11: In App Storage
 
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
[React-Native Tutorial 10] Camera Roll / Gallery / Camera / Native Modules by...
 

Recently uploaded

Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 

Recently uploaded (20)

Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 

Unity Google VR Cardboard Deployment on iOS and Android

  • 1. Lecture 5: Finish the Game &
 Deploying to iOS and Android
 for Google Cardboard Dr. Kobkrit Viriyayudhakorn iApp Technology Limited kobkrit@iapp.co.th ITS488 (Digital Content Creation with Unity - Game and VR Programming)
  • 2. Show Score on GameOver Scene • When you change the scene. All useful game objects are gone. • Make ScoreCount survive the next scene. • Add DontDestroyOnLoad(g ameObject); in the Start Method.
  • 3. ScoreCount Keep Creatings 
 When User Press "Play Again?"
  • 4. Solve by ScoreAbsorber • Create a new ScoreAbsorber GameObject in Scene #3 (Gameover scene) • Create a new C# Script ScoreAbsorber.cs • Drag the ScoreAbsorber.cs to associated with GameObject • Write down the following code.
  • 6. Exercise 1: Display Score on GameOver • Create a new GameOverScoreDisplay C# file. • Create a new Text item. • Associate between GameOverScoreDisplay and Text. • Find the ScoreAbsorber and update the text.
  • 7.
  • 8. Importing the Asset Model 1. Download Asset Model
 at https://www.dropbox.com/s/ q9xup1axi5m8lm8/Asset-Pack.zip? dl=0We gonna import the asset model from Joongly.
 http://joongly.com/index.php?route=product/product&product_id=62
  • 9. Importing Package 2. Assets > Import Package > Custom Package...
 Choose "ShootHoopKit.unitypackage" 3. Make sure that select everything
 and then select "Import" 4. Now you get Assets of the "ShootHoopKit"
  • 10. Add Ringboard into the Scene 1. Drag and Drop "RingBoard" 2. Make it position correctly by using
 "Move", "Rotate", "Scale"
  • 11. Exercise 2: Build Level from Assets. • Duplicate the RingBoard Prefab for another 2 board • Position them correctly around your scene. • Remove the unnecessary block. • Replace the ball that gets shot.
  • 12. 1. Duplicate the RingBoard Prefab for another 2 board.
 Position them correctly around your scene.
 And play. 2. Drag and drop the Ball prefab to "Ball Launcher" And "Play"
 
 **Adjust Ball Speed to make it playable**
  • 13. Adding the Trigger 1. Remove all unused Target blocks
 Select Them > Delete 2. Right click at the Ringboard and create empty.
  • 14. 1. Rename it as "Trigger", Move it at the hole of the Backboard, and Add Box Collider 2. Check "IsTrigger" 3. Add the new C# file
 "GoalTrigger" 4. Drag and drop
 code to the Trigger.
  • 16. Exercise 3 • Play button, to test the game. • Duplicate it to multiple backboard • Make the score to increase become public and adjustable in Unity.
  • 18. We need the newest version of Unity • Install the newest setup of the following files • Unity-2017.2.0f3.pkg • UnitySetup-iOS-Support-for-Editor-2017.2.0f3.pkg • UnitySetup-Android-Support-for-Editor-2017.2.0f3.pkg • Android-Studio-IDE-171.4408382-mac.dmg • Xcode 9.1
  • 19. Download the Previous Lecture Code http://github.com/kobkrit/VR_basketball
  • 20. Build Unity for iOS • Install Unity iOS Build Support • Reopen the Unity & Switch Platform • Xcode • Use the following Apple Developer ID • Username: kobkrit@gmail.com • Password: SIITsiit1
  • 21. Install iOS Build Support 1. Open File > Build Settings > iOS >
 Click on "Open Download Page" 2. It will download the package. 3. Follow the install instruction. After completed, Restart the unity again.
  • 22. 4. Select iOS > Tap Switch Platform 5. It will take a while 6. Press Build and Run,
 It will prompt you for enter the iOS project directory.
 You can select any folder.
  • 23. 7. If you encounter the API update Required
 Press "I Made a Backup. Go Ahead!" 8. This will take a while... 9. When it is finished, the Xcode will show up.
 Go to tab "General" > Select "Unity-iPhone". In Signing and Team Selection Box, Click at "None"
 and then "Add an Account..."
  • 24. 10. Write down your apple id’s username and password
 • Use the following Apple Developer ID • Username: kobkrit@gmail.com • Password: SIITsiit1 11. You will see the above error, make change on the 
 Bundle identifier to "com.kobkrit.{your-student-id}
 Example: com.kobkrit.4722791763
 and then press "Tab" 
 
 You will see as below.
  • 25. 12. Redo it again for "Unity-iPhone Tests Target"
 Select a Team 13. Plug-in your iPhone to machine.
 Select it as the target.
 And press "Play" button
  • 26. Enabling VR 1. Open File > Build Settings > iOS >
 Click on "Player Setting" 2. At the XR Settings, Check at the Virtual Reality Supported
 Then press +, Choose "Cardboard"
  • 27. 3. Press "Build And Run" again. 4. Re-assign Developer Team in Xcode,
 and Re-enter App Identifier.
 Hit "Play" Button.
  • 28. Build Unity for Android • Install Unity Android Build Support • Install Android Studio • Download & Install Android SDK • Enable USB Debugging on Android Device • Connect Android Device to the SDK • Config Android SDK Path in Unity
  • 29. Install Android Studio To install Android Studio on your Mac, proceed as follows: 1.Launch the Android Studio DMG file. 2.Drag and drop Android Studio into the Applications folder, then launch Android Studio. 3.Select whether you want to import previous Android Studio settings, then click OK. 4.The Android Studio Setup Wizard guides you though the rest of the setup, which includes downloading Android SDK components that are required for development. That's it! The following video shows each step of the recommended setup procedure.
  • 30. Enable Android USB Debugger Settings > About Phone > Build number > Tap it 7 times to become developer
  • 31. Enable Android USB Debugger #2 Settings > Developer Options > USB Debugging
  • 32. Install Unity Android Build Support 1. Open File > Build Settings > Android
 Click on "Open Download Page" 2. It will download the package. 3. Follow the install instruction. After completed, Restart the unity again.
  • 33. 4. Plug in the Android phone to machine via USB cable.
 Press "Player Settings..." 5. Look at the right, At the Other Settings > Identification,
 Make change the Package Name to
 com.Kobkrit.BasketBall
 
 Change Target API Level to Android 7.1
 Minimum API Level to Android 6.0

  • 34. 6. Select Android 
 Change Build System -> Gradle (New) Enable Development Build
 Press Build And Run 7. Save the Android Project to any location you like. 8. It will take a while..