- Home /
Using Application.OpenUrl to open a URL in a String variable
Hi,
I'm currently trying to build a simple program in Unity which gets a string from a URL, strips out the html and then passes that String variable to Application.OpenUrl to open a site I specify.
However when i tell Application.OpenUrl to open the link it does nothing, doesn't even open the browser, like it has no data. If i hard code the link it works fine leading me to think that the way Unity handles Strings is more complex than raw text, am I right? and is there a way around this problem?
Thanks
Posting code and the string you are attempting might help us help you
Answer by DaveA · Aug 30, 2011 at 04:12 PM
If you are sending a string via url, look into using this: http://unity3d.com/support/documentation/ScriptReference/WWW.EscapeURL.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612194358im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Optimizing OnGUI 1 Answer
String as Variable name 0 Answers
Finding A Variable With A String Variable 1 Answer
Text UI is not being assigned 2 Answers
GetComponent from string name? 3 Answers