Playmaker Action for CloseBrowser

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

This topic contains 5 replies, has 2 voices, and was last updated by Piotr Piotr 1 week, 4 days ago.

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
    Piotr
    Piotr
    Keymaster

    Whats exactly not working?

    #1288

    shenal
    Participant

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

    #1289
    Piotr
    Piotr
    Keymaster

    Is it working outside of Playmaker action?

    #1290

    shenal
    Participant

    Yes it does work outside Playmaker.

    #1293
    Piotr
    Piotr
    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.