Welcome! › Forums › Unity Plugins › In-App Web Browser › Playmaker Action › Reply To: Playmaker Action
March 25, 2021 at 10:55 pm
#11729
Piotr
Keymaster
hey,
try this one:
using System.Collections.Generic;
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory("InAppBrowser")]
[Tooltip("Open a URl using InAppBrowser")]
public class InAppBrowserOpenURL : FsmStateAction
{
[RequiredField]
[Tooltip("URL")]
public FsmString address;
public override void Reset()
{
address = null;
}
public override void OnEnter()
{
DoEnter();
Finish();
}
private void DoEnter()
{
InAppBrowser.OpenURL(address.Value);
}
}
}
- This reply was modified 3 years, 7 months ago by Piotr.