Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started by: ho young ryoo on September 06, 2018, 08:08:21 PM
-
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'
(http://dulimong.dothome.co.kr/test/pk.PNG)
What is the problem?
-
hi.
ApplicationOpenUrl.cs as some code that is outdated. (when using newer unity versions)
Did you get this from the Ecoystem (https://hutonggames.fogbugz.com/default.asp?W1181)?
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 :
// (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();
}
}
}
-
I use unity 2018.1.6f.
I get it EcosystemBrowser.
Maybe it's a version issue.
-
I changed the version.
I do not know what the problem is.
(http://dulimong.dothome.co.kr/test/erro90.PNG)
-
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.