playMaker

Author Topic: test joystick and error  (Read 3789 times)

ho young ryoo

  • Playmaker Newbie
  • *
  • Posts: 33
test joystick and error
« 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'


What is the problem?
« Last Edit: September 06, 2018, 08:10:34 PM by ho young ryoo »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: test joystick and error
« Reply #1 on: September 11, 2018, 12:56:02 AM »
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: [Select]
// (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();
        }
    }
}

ho young ryoo

  • Playmaker Newbie
  • *
  • Posts: 33
Re: test joystick and error
« Reply #2 on: September 11, 2018, 05:37:59 AM »
I use unity 2018.1.6f.
I get it EcosystemBrowser.
Maybe it's a version issue.

ho young ryoo

  • Playmaker Newbie
  • *
  • Posts: 33
Re: test joystick and error
« Reply #3 on: September 11, 2018, 08:05:46 AM »
I changed the version.
I do not know what the problem is.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: test joystick and error
« Reply #4 on: September 11, 2018, 01:32:35 PM »
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.