- Home /
Question by
darrellnggg · 2 days ago ·
inspectoropenurl
OpenURL works in editor and runtime but does not work after building onto Android
So I am trying to make a button that opens up to a webpage when clicked. Here is the code for the function:
public void ToHyperLink() { string theURL = parentButton.GetComponent().btnRefObj.GetComponent().prodURL; Application.OpenURL(theURL); }
The URL is passed through the inspector and has a general format: http://www.x.com/products/y
This works perfectly fine when testing it on my PC, but once it is built to my Android phone it stops working.
Comment
Your answer
Follow this Question
Related Questions
Script to create instance from in inspector 2 Answers
Unity3D 3.2, MonoDevelop debugger "inspector" problems 3 Answers
How to serialize an array of classes 1 Answer
Get Inspector width 1 Answer