Unity + AndroidでモバイルVRハンズオン

Click here to load reader

  • date post

    17-Mar-2018
  • Category

    Technology

  • view

    776
  • download

    0

Embed Size (px)

Transcript of Unity + AndroidでモバイルVRハンズオン

  • Unity + Android

    VR

  • Unity(Version 5.4.1f1)

    Android SDK

    - https://developer.android.com/studio/index.html

    Android Studioandroid-sdk_r24.4.1-macosx.zip

    https://developer.android.com/studio/index.html

  • JDK

    - http://www.oracle.com/technetwork/java/javase/downloads/index.html

    Oldskybox.unitypackage

    - http://d-

    cube.connpass.com/event/42055/?utm_campaign=&utm_source=notifica

    tions&utm_medium=email&utm_content=title_link

    GoogleVRForUnity.unitypackage

    - https://github.com/googlevr/gvr-unity-

    sdk/blob/master/GoogleVRForUnity.unitypackage

    http://www.oracle.com/technetwork/java/javase/downloads/index.htmlhttp://d-cube.connpass.com/event/42055/?utm_campaign=&utm_source=notifications&utm_medium=email&utm_content=title_linkhttps://github.com/googlevr/gvr-unity-sdk/blob/master/GoogleVRForUnity.unitypackage

  • Unity

    File > Build Settings

    PlatformAndroid

    Switch Platform

  • Unity

  • 1. Unity

    2. GoogleVRSDK

    3.

    4. Android

  • 1.Unity

  • Unity

  • Unity

    UnityCube

    Rigidbody

    RigidbodyCube

  • Main Camera

  • Prefab

  • q,w,e,r,t

  • Unity

    Unity

  • 2. GoogleVRSDK

  • GoogleVRSDK

    https://github.com/googlevr/gvr-unity-

    sdk/blob/master/GoogleVRForUnity.unitypackage

    URL

    https://github.com/googlevr/gvr-unity-sdk/blob/master/GoogleVRForUnity.unitypackage

  • GoogleVRSDK

    GoogleVRForUnity.unitypackage

    Unity

  • GoogleVRSDK

    GoogleVR > DemoScenes > HeadsetDemo

    > DemoScene

  • GVR

    alt +

    ctrl +

  • GVR

    Event Trigger

    GvrViewerMain

    Main CameraGvr Head

  • 3.

  • Cube

    > 3D

    > Cube

    Cube

  • Cube

    Cube >

    Add Componet > Rigidbody

    Cube

  • Skybox

    Window > Lighting

    SceneSkybox

    Sunny Skybox

  • Skybox

    Skybox

    ProjectAssets > Standard Assets >

    Skyboxes > Sunny1 Skybox

    InspectorFix Now

  • 4. Android

  • Android

    JDK

    -/usr/libexec/java_home -V

    JDK

    Android SDK

    -android-sdk-

    macosx

  • Android

    Bundle Identifier

    -com..HandsOn

    -

    Android

  • Android

    AndroidON

    > > 7

    USB

    ON

  • Android

    AndroidUSB

    Build And Run