Playmaker Action

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11728
    hunter_something
    Participant

    Hi there!

    The asset store listing says that this comes “Bundled with ready-to-use Playmaker action” – but I can’t seem to find it.

    Could you let me know how I can locate this file?

    Thanks!

    #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 ago by PiotrPiotr.
    #11731
    hunter_something
    Participant

    Thanks – that worked great!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.