PlayMaker Help & Tips > Android Help

test joystick and error

(1/1)

ho young ryoo:
Hi,
I installed playmaker, joystick, and UGUI.
There is nothing else.
I did not do anything but I get the following error.

Assets/PlayMaker Custom Actions/Application/ApplicationOpenUrl.cs(27,20): error CS0619: `UnityEngine.Application.isWebPlayer' is obsolete: `This property is deprecated and will be removed in a future version of Unity, Webplayer support has been removed since Unity 5.4'


What is the problem?

djaydino:
hi.
ApplicationOpenUrl.cs as some code that is outdated. (when using newer unity versions)

Did you get this from the Ecoystem?

if so or if not try getting it (again) from the Ecosystem)

i tried with unity 2018.2 and playmaker 1.9 but i do not get the error.

if you open the script, it should look like this :


--- Code: ---// (c) Copyright HutongGames, LLC 2010-2015. All rights reserved.
/*--- __ECO__ __PLAYMAKER__ __ACTION__ ---*/

using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Application)]
[Tooltip("Open a Url link in the browser")]
public class ApplicationOpenUrl : FsmStateAction
{

[RequiredField]
public FsmString url;

[Tooltip("When in webPlayer, will open a new window, define the name of that window here.")]
public FsmString WebWindowTitle;

public override void Reset()
{
url ="";
}

        public override void OnEnter()
        {
#if UNITY_4 || UNITY_5
            if (Application.isWebPlayer)
            {
#if UNITY_IPHONE
#else
                Application.ExternalEval("window.open('" + url + "','" + WebWindowTitle.Value + "')");
#endif
            }
            else

#endif
            {
                Application.OpenURL(url.Value);
            }
            Finish();
        }
    }
}
--- End code ---

ho young ryoo:
I use unity 2018.1.6f.
I get it EcosystemBrowser.
Maybe it's a version issue.

ho young ryoo:
I changed the version.
I do not know what the problem is.

djaydino:
Hi.
Is the script (ApplicationOpenUrl .cs) the same as the one i posted?

Does it include "#if UNITY_4 || UNITY_5"

If not.
Remove the script and if you need the "Application Open Url" action try to re-download it.

Navigation

[0] Message Index

Go to full version