Sample Repository
Run the sample
- Clone Sample Repository, Change current directory to
HelloWorld
. And Open with Unity. - (If you don't have NRSDK) Download NRSDK 1.7.0 from https://nreal-public.nreal.ai/download/NRSDKForUnityAndroid_1.7.0.unitypackage
- Open
Build Setting
, change Platform toAndroid
- Open
Project
, selectAssets
>import package
>Custom Package
and importNRSDKForUnityAndroid_1.7.0.unitypackage
. - Check
Build Settings
>Player Settings
by referring to Configure Build Settings - Press
Build
formBuild Settings
panel - Install *.apk on Android or DevKit.
Tutorial
1. Setting up the project for Nreal development
- See Quickstart for Android - NRSDK Documentation and configure the build settings.
- (If you don't have NRSDK) Download NRSDK 1.7.0 from https://nreal-public.nreal.ai/download/NRSDKForUnityAndroid_1.7.0.unitypackage
- Open
Project
, selectAssets
>import package
>Custom Package
and importNRSDKForUnityAndroid_1.7.0.unitypackage
.
2. Put a Canvas in the scene
- Put
Canvas
fromCreate
>UI
- Set property on
Inspector
panel-
Render Mode
: World Space -
Pos X
: 0 ,Pos Y
: -0.35Pos Z
: 3 -
Scale
-
X
: 0.005 ,Y
: 0.005 ,Z
: 0.005
-
-
3. Put Text in Canvas
- Put
Text
as a child ofCanvas
-
Pos X
: 0,Pos Y
: 50,Pos Z
: 3
-
- Change Text to "Hello World!" on Inspector panel.
- Change color of Text to
#fff
.
4. Build
- Press
Build
formBuild Settings
panel - Install *.apk on Android or DevKit.
Top comments (0)