Skip to main content
Cleanup
Source Link
DMGregory
  • 141k
  • 23
  • 258
  • 401

Button to call Application.OpenURL not working

I have a public voidmethod

Publicpublic void patreononclick(){
   Application.OpenURL("http://www.patreon.com/HubakaGs"); 
}

WhichThis is supposed to open my patreonPatreon page when a button is tapped. But

But when iI tap the button in the built application, nothing happens. I

I have assigned the function to the On Click() section of the Button (Script). I

I am building the game for android patformAndroid and iI use Unity 2017.1.0p4 Personal. How

How can iI make the button to function properly?

Update: I

I changed the function to public void patreononclick(){ Debug.Log ("the game should open patreon"); Application.OpenURL("http://www.patreon.com/HubakaGs"); } But

public void patreononclick(){
    Debug.Log ("the game should open patreon");
    Application.OpenURL("http://www.patreon.com/HubakaGs");
}

But when the button is clicked, there is no message atin the console.

Application.OpenURL not working

I have a public void

Public void patreononclick(){Application.OpenURL("http://www.patreon.com/HubakaGs");}

Which supposed to open my patreon page when a button is tapped. But when i tap the button in the built application, nothing happens. I have assigned the function to the On Click() section of Button (Script). I am building the game for android patform and i use Unity 2017.1.0p4 Personal. How can i make the button to function properly?

Update: I changed the function to public void patreononclick(){ Debug.Log ("the game should open patreon"); Application.OpenURL("http://www.patreon.com/HubakaGs"); } But when the button is clicked, there is no message at the console.

Button to call Application.OpenURL not working

I have a public method

public void patreononclick(){
   Application.OpenURL("http://www.patreon.com/HubakaGs"); 
}

This is supposed to open my Patreon page when a button is tapped.

But when I tap the button in the built application, nothing happens.

I have assigned the function to the On Click() section of the Button (Script).

I am building the game for Android and I use Unity 2017.1.0p4 Personal.

How can I make the button function properly?

Update:

I changed the function to

public void patreononclick(){
    Debug.Log ("the game should open patreon");
    Application.OpenURL("http://www.patreon.com/HubakaGs");
}

But when the button is clicked, there is no message in the console.

Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
I changed my code to test if the function is called
Source Link
Hubaka Gs
  • 43
  • 2
  • 10

I have a public void

Public void patreononclick(){Application.OpenURL("http://www.patreon.com/HubakaGs");}

Which supposed to open my patreon page when a button is tapped. But when i tap the button in the built application, nothing happens. I have assigned the function to the On Click() section of Button (Script). I am building the game for android patform and i use Unity 2017.1.0p4 Personal. How can i make the button to function properly?

Update: I changed the function to public void patreononclick(){ Debug.Log ("the game should open patreon"); Application.OpenURL("http://www.patreon.com/HubakaGs"); } But when the button is clicked, there is no message at the console.

I have a public void

Public void patreononclick(){Application.OpenURL("http://www.patreon.com/HubakaGs");}

Which supposed to open my patreon page when a button is tapped. But when i tap the button in the built application, nothing happens. I have assigned the function to the On Click() section of Button (Script). I am building the game for android patform and i use Unity 2017.1.0p4 Personal. How can i make the button to function properly?

I have a public void

Public void patreononclick(){Application.OpenURL("http://www.patreon.com/HubakaGs");}

Which supposed to open my patreon page when a button is tapped. But when i tap the button in the built application, nothing happens. I have assigned the function to the On Click() section of Button (Script). I am building the game for android patform and i use Unity 2017.1.0p4 Personal. How can i make the button to function properly?

Update: I changed the function to public void patreononclick(){ Debug.Log ("the game should open patreon"); Application.OpenURL("http://www.patreon.com/HubakaGs"); } But when the button is clicked, there is no message at the console.

Source Link
Hubaka Gs
  • 43
  • 2
  • 10

Application.OpenURL not working

I have a public void

Public void patreononclick(){Application.OpenURL("http://www.patreon.com/HubakaGs");}

Which supposed to open my patreon page when a button is tapped. But when i tap the button in the built application, nothing happens. I have assigned the function to the On Click() section of Button (Script). I am building the game for android patform and i use Unity 2017.1.0p4 Personal. How can i make the button to function properly?