Skip to content

Instantly share code, notes, and snippets.

@HyroVitalyProtago
Created July 22, 2016 20:52
Show Gist options
  • Select an option

  • Save HyroVitalyProtago/c350644aad017edbe66e8522793b2393 to your computer and use it in GitHub Desktop.

Select an option

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
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