Created
July 22, 2016 20:52
-
-
Save HyroVitalyProtago/c350644aad017edbe66e8522793b2393 to your computer and use it in GitHub Desktop.
Unity GoogleVR (Daydream) script to change the emulator wifi config ip without change the original file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Reflection; | |
| using Gvr.Internal; | |
| using UnityEngine; | |
| public class GvrControllerWifiConfig : MonoBehaviour { | |
| public string IP = "192.168.43.1"; | |
| void Awake() { | |
| typeof(EmulatorConfig) | |
| .GetField("WIFI_SERVER_IP", BindingFlags.Static | BindingFlags.Public) | |
| .SetValue(null, IP); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment