Open URL#
Application / Open URL
Description#
Executes the Open URL static method of the Application class
Parameters#
| Name | Description |
|---|---|
| Url |
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
namespace VisualScript.Runtime
{
[Title("Open URL")]
[Category("Application/Open URL")]
[Description("Executes the Open URL static method of the Application class")]
[Image(typeof(IconCog), ColorTheme.Type.TextLight)]
[Keywords("App, Game, Settings, Configuration")]
[Parameter("Url")]
[Serializable]
public class GenInstructionApplication_OpenURL_1 : Instruction
{
[SerializeField] private GetString m_Url = new GetString();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Application");
string method = TextUtils.ThemeAsKeyword("Open URL");
return $"{className} {method} ({this.m_Url})";
}
protected override Awaitable Run(Args args)
{
Application.OpenURL(
(string) this.m_Url.Get(args)
);
return Done;
}
}
}