Reply To: Playmaker Action

Welcome! Forums Unity Plugins In-App Web Browser Playmaker Action Reply To: Playmaker Action

#11729
PiotrPiotr
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 PiotrPiotr.