L4 - Hello World Flashcards
scene view
create scene
rt-click WASD
movement camera in scene
game object
anything that can affect our scene
each object can have many
components, which we see in the inspector window on the right
transform?
position, rotation, scale. every game object has.
game view
view that users will be able to see
projects window at bottom
place to access any file we save or import. code, 3d models, or scenes
rotate game view how?
alt+drag in game view
summary
Unity Basics
Unity makes creating VR content much easier.
The Hierarchy window contains all the objects in our scene. A new scene starts with a main camera and a directional light. The Game window is what players and users will see when you build your app. The Project window contains all of the files that we will be using, creating, or importing.
Click on an object in the Hierarchy or in the Project window and look at the Inspector window to view an object or file in more detail.
Every gameobject has a transform. The position, rotation, and scale of an object can be changed visually by using the buttons at the top of the editor.
The Unity editor is very customizable. We’ll be using the “Default” layout, but you can change this at any time by dragging windows around, or by using the drop down list in the top right to switch to some of the most common.
Use the Play button at the top middle of the Unity editor to test your scene. With the Google Cardboard sdk you can hold Alt and move your mouse to simulate moving your head and change your view.
Edit a Text Element
In the Hierarchy window, click on the object with the text component. Look in the inspector for the Text Mesh Pro or Text component. Click on the text input box to change the text that appears.
Other components on an object can also be changed by editing their values in the inspector. You’ll be doing something similar for your project.
Move an Object
Click on the move tool button in the top left button group. In the Hierarchy, click on the object you want to move. Then click and drag the arrows to reposition the object.
Building To Android
To build to an Android phone, you’ll need the following:
Java SE Development Kit 8 (JDK) installed.
Android Studio installed.
Android Studio’s SDK Manager should be set up with proper SDK Platforms and SDK Tools settings.
Enabled USB debugging on our phone.
Added the Android SDK and Java JDK install locations in Unity Preferences.
Note: These locations vary based on where you saved them during installation, and having the wrong location here is the most common source of problems in this step.
Switched the Unity platform to Android. by going to File > Build Settings… Then click on Android and Switch Platform.
Set a Package Name and the XR Settings in Player Settings.
Clicked Build And Run.
Building to iOS
To build to an iOS phone, you’ll need the following:
Create an Apple ID.
Download and install Xcode
Switched the Unity platform to iOS by going to File > Build Settings… Then click on Android and Switch Platform.
Set a Package Name and the XR Settings in Player Settings.
Clicked Build And Run.
Opened the build file in Xcode.
Deployed to phone from Xcode.
Followed the instructions in the popup to verify the Developer App certificate.
What we did / learned:
Download and install the Unity game engine.
Create a Unity account.
Learned how to create a new Unity project.
Learned how to navigate around in the Unity editor.
Learned how to open an existing Unity project.
Edited an existing Unity project.