- Home /
Question by
Bogdan26 · Sep 03, 2018 at 05:13 AM ·
unity remote
Are there any alternatives to Unity Remote?
The app is pretty bad and I really need to test my game on mobile.
Comment
What's wrong with it? It always works for me. You can always build the app and put it on your device manually.
It doesn't work for me, and from what I've seen in the reviews, I'm not the only one.
I made my own custom console inside android game with Application.log$$anonymous$$essageReceive
Sample code:
public class $$anonymous$$yConsole : Singleton<$$anonymous$$yConsole>
{
private void Awake()
{
Canvas.SetActive(false);
}
public GameObject Canvas;
public $$anonymous$$eyCode Console$$anonymous$$ey = $$anonymous$$eyCode.F1;
public Text$$anonymous$$eshProUGUI Text;
private void Start()
{
Application.log$$anonymous$$essageReceived += ApplicationOnLog$$anonymous$$essageReceived;
}
private void ApplicationOnLog$$anonymous$$essageReceived(string condition, string stacktrace, LogType type)
{
if(type != LogType.Log)
Log(type.ToString() + ": " + condition +"\n" + stacktrace);
if(type == LogType.Exception || type == LogType.Error)
Canvas.SetActive(true);
}
private void Update()
{
if (Input.Get$$anonymous$$eyDown(Console$$anonymous$$ey))
{
Canvas.SetActive(!Canvas.activeInHierarchy);
}
}
public static void Log(object message)
{
$$anonymous$$yConsole.Instance.Text.text += message + "\n";
#if UNITY_EDITOR
Debug.Log(message);
#endif
}
}