VR in a Box – Demo | Google Cardboard Virtual Reality Demo in Unity3D and Visual Studio 2017

Following up on my previous post, I recorded the demo with some of the presentation leading up to the demo.

You can download the scripts I create in the video here.

Feel free to contact me if you want to know anything more…

Demo from my recent presentation on building a Google Cardboard VR app in Unity3D and Visual Studio 2017. I very quickly go over what Google cardboard is. I describe what I did in preparation of the model. I than switch to Unity3D, import the Google SDK for Unity package (https://developers.google.com/vr/unity/download) and load up the model I created. I talk about adding the camera for VR, setting up the unlit materials and write some scripts for walking around and gazing at objects.

 

Create project from existing code | Cordova, PhoneGap, Ionic, Visual Studio

When I start a new Cordova or Ionic project I normally start from the command line. I initialize the project and add some platforms and packages I need to use in my project. I sometimes start coding from VSCode, but there will be a point where I’d like to switch to Visual Studio, the full version. Until recently I started by creating a new project and move the existing code and config files into that. That was until I came across this awesome feature in Visual Studio: “Create New Project From Existing Code Files”. I don’t know when it was added, but I somehow missed it.

Here’s how it works.

Import existing project

I assume you already have an existing piece of code you want to move over to a Visual Studio project. To get it into Visual Studio the easy way, go to File –> New in the menu and select, “Project From Existing Code…”

FileNew

In the dialog that appears make sure “Apache Cordova” is selected in the dropdown list and hit the “Next >” button.

CreateProject

On the next dialog screen you have to navigate to the folder in which you Cordova project is. You also have to give your project a name. Hit “Finish” after that to close the dialog and start the creation of the project. This may take a few seconds.

FolderNameProject

After the project is imported you’ll end up with a solution similar to the one in the image below.

solution

From this point on you can use Visual Studio to work on your Cordova, or Ionic, project.

 

Enable onscreen keyboard in VS Android Emulator

By default, the Visual Studio Android emulator sets its keyboard entry to the hardware keyboard attached to you PC. But it might be very useful when developing apps to work with the software keyboard on Android. In the Windows Phone emulator, you can use a page-up and page-down to enable and disable the keyboard. In the Android emulator you’ll have to change a setting in the OS itself.

To change the setting, got to the Android Settings and to Language & Input. Than select “Change Keyboard”.


Hit the switch to change the input method.


You’re good to go: