Files
Continentis/Assets/OtherPlugins/Feel/MMTools/Accessories/MMUtilities/MMOpenURL.cs

22 lines
581 B
C#
Raw Normal View History

2025-10-03 00:02:43 -04:00
using UnityEngine;
namespace MoreMountains.Tools
{
/// <summary>
2026-03-20 11:56:50 -04:00
/// A class used to open a URL specified in its inspector
2025-10-03 00:02:43 -04:00
/// </summary>
[AddComponentMenu("More Mountains/Tools/Utilities/MM Open URL")]
2026-03-20 11:56:50 -04:00
public class MMOpenURL : MonoBehaviour
{
/// the URL to open when calling OpenURL()
public string DestinationURL;
2025-10-03 00:02:43 -04:00
2026-03-20 11:56:50 -04:00
/// <summary>
/// Opens the URL specified in the DestinationURL field
/// </summary>
public virtual void OpenURL()
{
Application.OpenURL(DestinationURL);
}
}
2025-10-03 00:02:43 -04:00
}