setOrientation

Admin
Site Admin
Posts: 13
Joined: Mon Jul 04, 2016 5:42 pm

setOrientation

Postby Admin » Mon Jul 04, 2016 9:28 pm

Function setOrientation:

parameters:
int orientation - current phone orientation.

These values can be used as parameter (compatible with Unity constants you get from Screen.orientation.value__):
int Orientation_LandscapeRight=4;
int Orientation_LandscapeLeft=3;
int Orientation_Landscape=3;
int Orientation_PortraitUpsideDown=2;
int Orientation_Portrait=1;


returns:
nothing

description:
used to send current phone orientation to SDK library.

when should be used:
before tracking started and each time when orientation change event is received

typical usage example (Unity):

Code: Select all

pluginObject.Call("setOrientation",Screen.orientation.value__);

Return to “RevolVR SDK API”

Who is online

Users browsing this forum: No registered users and 1 guest