Property | Type | Description | |
---|---|---|---|
Instance | NaviMobileManager, |
Method | Description | |
---|---|---|
Awake ( ) : void |
Initalize before the scene loads
|
|
Connect ( string ip ) : bool |
Method to connect to a given device
|
|
SendCurrentSize ( ) : void |
Send the size of the smart device to the VR device
|
|
SendDeviceType ( ) : void |
Send the device / platform type of the smart device to the VR device
|
|
SplitIP_Message ( string message ) : string[] | ||
Start ( ) : void |
Always keep screen on to keep app alive and start listening for the ipAddress
|
|
StartReceivingIP ( ) : void |
This method begins the process of listening to all messages sent on the router.
|
|
Update ( ) : void |
Handles sending all data to the VR display, this includes pose data via the naviPoseconnection and touch data via the rpcConnection It also handles receiving any data from the VR display. Currently, it just listens for which connection should send which type of data
|
Method | Description | |
---|---|---|
AnimateObj ( GameObject gObject, Vector3 dest, float timeInSec ) : IEnumerator |
Animates an object to move to a given destination
|
|
CallMethod ( GameObject gObject, string componentName, string methodName, object serializedParams ) : void |
Enables the SDK to update any component that is set by the asset bundle
|
|
ClearKeyboard ( ) : void |
Method to clear the keyboard
|
|
CloseKeyboard ( ) : void |
Method to close the keyboard
|
|
CreateSocket ( ) : void |
Creates a socket using the Unity Transport layer. This is a UDP connection that will support two channels of communication.
|
|
DecodeObject ( object obj ) : object |
Decodes the Object's class recusively
|
|
HandleAssetBundle ( RPCSerializer, rpcData ) : void | ||
HandleBigRPC ( byte recBuffer ) : void |
Method to parse and recieve image RPC from big data sources like an image
|
|
HandleRPC ( byte recBuffer ) : void |
Method to parse and send an RPC event from smart device such as recieving touch input
|
|
OnDisconnect ( int connectionID ) : void |
This method handles when the VR display disconnects in order to restart the app and listen for a new connection
|
|
ReceiveData ( IAsyncResult result ) : void |
This method continously listens for a reset command or a possible ipAddress to connect to
|
|
RequestKeyboard ( string initalText, bool hideInput ) : void |
Method to open the mobile keyboard with the given text
|
|
SendKeyboardText ( ) : void |
If the keyboard is open, then send the text that is currently typed to the VR device
|
|
SetDeviceNumber ( int playerNumber ) : void |
Sets the text to display to the controller number
|
|
SetDeviceOrientation ( ScreenOrientation, orient, bool canUserChange ) : void |
Fixes the device orientation in a given way that is depenedent on the VR device
|
|
SetInstruction ( string instruction ) : void |
Sets the text to display to the user
|
|
UpdateProperty ( GameObject gObject, string componentName, string propName, object value, object index ) : void |
Enables the SDK to update any component that is set by the asset bundle
|
public Connect ( string ip ) : bool | ||
ip | string | The ip address to connect to |
return | bool |
public SplitIP_Message ( string message ) : string[] | ||
message | string | |
return | string[] |