Playmaker Action for CloseBrowser

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

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1279
    shenal
    Participant

    Trying to make a Playmaker Action to close the browser window. Tried the following but it doesn’t work.

    using System.Collections.Generic;
    using UnityEngine;
    
    namespace HutongGames.PlayMaker.Actions
    {
        [ActionCategory("InAppBrowser")]
        [Tooltip("Close InAppBrowser Window")]
        public class InAppBrowserClose : FsmStateAction
        {
    
            public override void Reset()
            {
            }
    
            public override void OnEnter()
            {
                InAppBrowser.CloseBrowser();
    
                Finish();
            }
        }
    }
    #1282
    PiotrPiotr
    Keymaster

    Whats exactly not working?

    #1288
    shenal
    Participant

    The browser isn’t closing when the action is executed.

    #1289
    PiotrPiotr
    Keymaster

    Is it working outside of Playmaker action?

    #1290
    shenal
    Participant

    Yes it does work outside Playmaker.

    #1293
    PiotrPiotr
    Keymaster

    Frankly I have no any experience with Playmaker so cannot really help you there. Is it even executing this OnEnter function?

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