Hi,
Here's the script I used to open another tab in the browser when the player click on my logo in my game.
Place the script as a component on an empty GameObject named Site, and you can then use the Object: Send message Action to run this function whenever you like.
using UnityEngine;
using System.Collections;
{
public class ButtonOpenURL : MonoBehaviour
{
void OpenUrl()
{
//Application.OpenURL(url);
}
}
}
Don't forget to change the name of your site in the script and be sure to set the interaction as follow :
I hope this will help you in your projects.
Comments