SlideShare a Scribd company logo
1 of 33
Download to read offline
Lecture 6: Music and Sound Effect

& GVR Try out.
Dr. Kobkrit Viriyayudhakorn

iApp Technology Limited

kobkrit@iapp.co.th
ITS488 (Digital Content Creation with Unity - Game and VR Programming)
Starter Project
https://github.com/kobkrit/VR_basketball
Sound Effect
Getting Resource from Unity Asset Store
Audio Kit
Download Audio Kit at 

http://bit.ly/2iVDB7v
Import Audio Kit
1. Menu Bar > Assets > Import Package > Custom Package...
2. Select the "AudioKit.unitypackage"
3. Make sure that all files 

are selected, and then

Press "Import"
Imported Audio
Press to Play
Adding Music to the Game
1. Select "Scene 1". Right click at

Hierarchy > Audio > Audio Source
2. Drag the "music...come..."

to the Audio Source
Configure the Music
1. Select Audio Source

2. Checked at 

• Play On Awake

• Loop

3. Run "Play" to Test.
Exercise 1: Add a sound to Game Over.
• Find the sound that seems most appropriate to you.

• Should it be looping or not?

• Add the audio source to the Game Over scene.
Adding Sound Effect to Ball
1. Open the Scene 2 > ShootHoopKit > 

Drag the ball to the Hierarchy windows
2. Select the ball at the right inspector windows >

Add Component > Audio Source
3. The attached audio source

is added into the Ball Game object
Trigger Sound Effect by Code
1. Drag a drop Sound file. the impact_deep_thud_bounce
sound file into the AudioClip
2. Add the new C# script, "BallBounceSound.cs"
BallBounceSound.cs
2. Drag the BallBounceSound.cs to attached 

with the ball game object. >>
1. Writing the above code.
Trigger Sound Effect by Code
Make the customized ball as the prefab
1. Press "Play" now, We will heard 

only the single drop of sounds.

Even you firing multiple ball.
2. Drag the customized ball as 

the ball prefab.
3. Press Play again.

Now you will heard multiple

drop sounds.
Exercise 2: Adding a scoring sound.
• Add an audio source component.

• Find a good scoring sound.

• Trigger in the appropriate place.
Solution for Exercise 2
• Enter the ScoreCount.cs, Add the AudioSource part at IncreaseScore Function.
1. Select "ScoreCount" Game Object,

At the inspector windows, Add "Audio source".
2. Drag and drop "Chime_ball_02" at the AudioClip part.

Unchecked "Play On Awake checkbox.
Play with sound time.
Make our life easier with Google VR SDK
Google VR Installation
• https://developers.google.com/vr/unity/download
Making a new project
Import GVR unity package
1. Assets > Import Package > Custom Package....
2. Select GoogleVRForUnity_1.110.0.unitypackage
3. Make sure that all items are checked

and then "Import"
Google VR Demo
Play around with GVR Demo
1. File > Build Settings...
1. Tap "Add Open Scenes"
2. Select iOS
3. Click "Switch Platform"
Change to Virtual Reality Project
1. Click on "Player Settings"
2. At the XR Settings,

Select "Virtual Reality
Supported"
and Add "Cardboard" to
Virtual Reality SDK
Test on iOS
1. Connect with iOS phone to the machine.

2. Press "Build and Run"
Fast VR project using GVR
1. Create a New Empty Scene
2. Add Cube into the Scene,

Make it in front of the Camera
3. Play

You can not move any view.
1. Go to Google VR Assets > Prefabs
Using GVR Prefab
2. Import the prefab like this...
Now you can move in VR
• Shift + Move Mouse = Change Orientation
• Shift + Left Mouse Button = ClickButton
• Shift + Right Mouse Button = AppButton
• Shift + Middle Mouse Button = HomeButton/Recenter
• Shift + Ctrl = IsTouching
• Shift + Ctrl + Move Mouse = Change TouchPos
There is much more in Google VR
• A simple reticle prefab and associated scripts for gaze-based user interaction.

• User head tracking.

• Side-by-side stereo rendering.

• Detecting user interaction with the system (via trigger or controller).

• Automatic stereo configuration for a specific VR viewer.

• Distortion correction for a VR viewer's lenses.

• An alignment marker to help center the screen under the lenses when you insert your phone into
a viewer.

• Automatic gyro drift correction.
Q/A

More Related Content

What's hot

Pb works howto
Pb works howtoPb works howto
Pb works howto
urse1515
 
How to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and moreHow to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and more
Sandra González
 
Android Game Minisyonize
Android Game MinisyonizeAndroid Game Minisyonize
Android Game Minisyonize
savvy
 
Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...
SlideTeam.net
 

What's hot (15)

GameMaker 1) intro to gamemaker
GameMaker 1) intro to gamemakerGameMaker 1) intro to gamemaker
GameMaker 1) intro to gamemaker
 
Gamemaker lesson 1
Gamemaker lesson 1Gamemaker lesson 1
Gamemaker lesson 1
 
Pb works howto
Pb works howtoPb works howto
Pb works howto
 
S02.W02 - Some New Features of Windows
S02.W02 - Some New Features of WindowsS02.W02 - Some New Features of Windows
S02.W02 - Some New Features of Windows
 
DIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDKDIY Mobile VR with Unity 3d & Cardboard SDK
DIY Mobile VR with Unity 3d & Cardboard SDK
 
Unity 2D game development
Unity 2D game developmentUnity 2D game development
Unity 2D game development
 
How to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and moreHow to fake a database/backend in Axure... and more
How to fake a database/backend in Axure... and more
 
Making apps for the Apple TV
Making apps for the Apple TVMaking apps for the Apple TV
Making apps for the Apple TV
 
Lecture5
Lecture5Lecture5
Lecture5
 
What Is A Game Engine
What Is A Game EngineWhat Is A Game Engine
What Is A Game Engine
 
Car racing game for android
Car racing game for androidCar racing game for android
Car racing game for android
 
Android Game Minisyonize
Android Game MinisyonizeAndroid Game Minisyonize
Android Game Minisyonize
 
Developing Virtual Reality Application using Google Cardboard
Developing Virtual Reality Application using Google CardboardDeveloping Virtual Reality Application using Google Cardboard
Developing Virtual Reality Application using Google Cardboard
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...Crucifixion christ with hands reaching out power point slides and ppt diagram...
Crucifixion christ with hands reaching out power point slides and ppt diagram...
 

Similar to ITS488 Lecture 6: Music and Sound Effect & GVR Try out.

Run and jump tutorial (part 2) scenes
Run and jump tutorial (part 2)   scenesRun and jump tutorial (part 2)   scenes
Run and jump tutorial (part 2) scenes
Muhd Basheer
 
Chapt 1 (part 2) installing the sdk and exploring the workspace
Chapt 1 (part 2)   installing the sdk and exploring the workspaceChapt 1 (part 2)   installing the sdk and exploring the workspace
Chapt 1 (part 2) installing the sdk and exploring the workspace
Muhd Basheer
 
Callum deighton engine terminology
Callum deighton engine terminologyCallum deighton engine terminology
Callum deighton engine terminology
Deightonater
 

Similar to ITS488 Lecture 6: Music and Sound Effect & GVR Try out. (20)

Run and jump tutorial (part 2) scenes
Run and jump tutorial (part 2)   scenesRun and jump tutorial (part 2)   scenes
Run and jump tutorial (part 2) scenes
 
Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01Workingwithunity 110519054824-phpapp01
Workingwithunity 110519054824-phpapp01
 
Cardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR ExperiencesCardboard VR: Building Low Cost VR Experiences
Cardboard VR: Building Low Cost VR Experiences
 
Cross platform game development
Cross platform game developmentCross platform game development
Cross platform game development
 
Chapt 1 (part 2) installing the sdk and exploring the workspace
Chapt 1 (part 2)   installing the sdk and exploring the workspaceChapt 1 (part 2)   installing the sdk and exploring the workspace
Chapt 1 (part 2) installing the sdk and exploring the workspace
 
Callum deighton engine terminology
Callum deighton engine terminologyCallum deighton engine terminology
Callum deighton engine terminology
 
Ninja Cat Flyer - 6 of 6
Ninja Cat Flyer - 6 of 6Ninja Cat Flyer - 6 of 6
Ninja Cat Flyer - 6 of 6
 
How to add InLife to your game
How to add InLife to your gameHow to add InLife to your game
How to add InLife to your game
 
Scratch Tom and Jerry
Scratch Tom and JerryScratch Tom and Jerry
Scratch Tom and Jerry
 
DSC RNGPIT - Getting Started with Game Development Day 1
DSC RNGPIT - Getting Started with Game Development Day 1DSC RNGPIT - Getting Started with Game Development Day 1
DSC RNGPIT - Getting Started with Game Development Day 1
 
Game Development with Unity
Game Development with UnityGame Development with Unity
Game Development with Unity
 
Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6Ninja Cat Flyer - 1 of 6
Ninja Cat Flyer - 1 of 6
 
Cmd unity withc
Cmd unity withcCmd unity withc
Cmd unity withc
 
Developing VR Experiences with Unity
Developing VR Experiences with UnityDeveloping VR Experiences with Unity
Developing VR Experiences with Unity
 
Intro to Construct 2: Ghost Shooter - Step by Step
Intro to Construct 2: Ghost Shooter - Step by StepIntro to Construct 2: Ghost Shooter - Step by Step
Intro to Construct 2: Ghost Shooter - Step by Step
 
Play RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan TengPlay RICOH THETA 360 Videos in Unity Shanyuan Teng
Play RICOH THETA 360 Videos in Unity Shanyuan Teng
 
Building VR Applications For Google Cardboard
Building VR Applications For Google CardboardBuilding VR Applications For Google Cardboard
Building VR Applications For Google Cardboard
 
Illumi room - Peripheral Projected Illusionsfor Interactive Experiences
Illumi room - Peripheral Projected Illusionsfor Interactive ExperiencesIllumi room - Peripheral Projected Illusionsfor Interactive Experiences
Illumi room - Peripheral Projected Illusionsfor Interactive Experiences
 
Unity introduction for programmers
Unity introduction for programmersUnity introduction for programmers
Unity introduction for programmers
 
UX for XR: Creating User Flows for Mixed Reality
UX for XR: Creating User Flows for Mixed RealityUX for XR: Creating User Flows for Mixed Reality
UX for XR: Creating User Flows for Mixed Reality
 

More from 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
 

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

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Buy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptxBuy Epson EcoTank L3210 Colour Printer Online.pptx
Buy Epson EcoTank L3210 Colour Printer Online.pptx
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 

ITS488 Lecture 6: Music and Sound Effect & GVR Try out.

  • 1. Lecture 6: Music and Sound Effect & GVR Try out. Dr. Kobkrit Viriyayudhakorn iApp Technology Limited kobkrit@iapp.co.th ITS488 (Digital Content Creation with Unity - Game and VR Programming)
  • 4. Getting Resource from Unity Asset Store
  • 5. Audio Kit Download Audio Kit at 
 http://bit.ly/2iVDB7v
  • 6. Import Audio Kit 1. Menu Bar > Assets > Import Package > Custom Package... 2. Select the "AudioKit.unitypackage" 3. Make sure that all files 
 are selected, and then
 Press "Import"
  • 8. Adding Music to the Game 1. Select "Scene 1". Right click at
 Hierarchy > Audio > Audio Source 2. Drag the "music...come..."
 to the Audio Source
  • 9. Configure the Music 1. Select Audio Source 2. Checked at • Play On Awake • Loop 3. Run "Play" to Test.
  • 10. Exercise 1: Add a sound to Game Over. • Find the sound that seems most appropriate to you. • Should it be looping or not? • Add the audio source to the Game Over scene.
  • 11. Adding Sound Effect to Ball 1. Open the Scene 2 > ShootHoopKit > 
 Drag the ball to the Hierarchy windows 2. Select the ball at the right inspector windows >
 Add Component > Audio Source 3. The attached audio source
 is added into the Ball Game object
  • 12. Trigger Sound Effect by Code 1. Drag a drop Sound file. the impact_deep_thud_bounce sound file into the AudioClip 2. Add the new C# script, "BallBounceSound.cs"
  • 13. BallBounceSound.cs 2. Drag the BallBounceSound.cs to attached 
 with the ball game object. >> 1. Writing the above code. Trigger Sound Effect by Code
  • 14. Make the customized ball as the prefab 1. Press "Play" now, We will heard 
 only the single drop of sounds.
 Even you firing multiple ball. 2. Drag the customized ball as 
 the ball prefab. 3. Press Play again.
 Now you will heard multiple
 drop sounds.
  • 15. Exercise 2: Adding a scoring sound. • Add an audio source component. • Find a good scoring sound. • Trigger in the appropriate place.
  • 16. Solution for Exercise 2 • Enter the ScoreCount.cs, Add the AudioSource part at IncreaseScore Function.
  • 17. 1. Select "ScoreCount" Game Object,
 At the inspector windows, Add "Audio source". 2. Drag and drop "Chime_ball_02" at the AudioClip part.
 Unchecked "Play On Awake checkbox.
  • 19.
  • 20. Make our life easier with Google VR SDK
  • 21.
  • 22. Google VR Installation • https://developers.google.com/vr/unity/download
  • 23. Making a new project
  • 24. Import GVR unity package 1. Assets > Import Package > Custom Package.... 2. Select GoogleVRForUnity_1.110.0.unitypackage 3. Make sure that all items are checked
 and then "Import"
  • 26. Play around with GVR Demo 1. File > Build Settings... 1. Tap "Add Open Scenes" 2. Select iOS 3. Click "Switch Platform"
  • 27. Change to Virtual Reality Project 1. Click on "Player Settings" 2. At the XR Settings,
 Select "Virtual Reality Supported" and Add "Cardboard" to Virtual Reality SDK
  • 28. Test on iOS 1. Connect with iOS phone to the machine.
 2. Press "Build and Run"
  • 29. Fast VR project using GVR 1. Create a New Empty Scene 2. Add Cube into the Scene,
 Make it in front of the Camera 3. Play
 You can not move any view.
  • 30. 1. Go to Google VR Assets > Prefabs Using GVR Prefab 2. Import the prefab like this...
  • 31. Now you can move in VR • Shift + Move Mouse = Change Orientation • Shift + Left Mouse Button = ClickButton • Shift + Right Mouse Button = AppButton • Shift + Middle Mouse Button = HomeButton/Recenter • Shift + Ctrl = IsTouching • Shift + Ctrl + Move Mouse = Change TouchPos
  • 32. There is much more in Google VR • A simple reticle prefab and associated scripts for gaze-based user interaction. • User head tracking. • Side-by-side stereo rendering. • Detecting user interaction with the system (via trigger or controller). • Automatic stereo configuration for a specific VR viewer. • Distortion correction for a VR viewer's lenses. • An alignment marker to help center the screen under the lenses when you insert your phone into a viewer. • Automatic gyro drift correction.
  • 33. Q/A