playMaker

Author Topic: Virtual Joystick Ecosystem Sample [ECOSYSTEM] [JULY 2019]  (Read 17454 times)

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: Virtual Joystick Ecosystem Sample [ECOSYSTEM] [JULY 2019]
« Reply #30 on: December 02, 2019, 10:19:13 AM »
https://simmer.io/@colpolstudios/mechanim-simple-ik-v-07

Please note that the restart button is only there so that you can go back and choose a different method of control.

You would not have this option normally.

I have yet to test on an actual phone but don't forsee any issues.

Let me know what you think of the controls.

Feedback is valuable.
« Last Edit: December 02, 2019, 10:23:53 AM by colpolstudios »

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: Virtual Joystick Ecosystem Sample [ECOSYSTEM] [JULY 2019]
« Reply #31 on: March 02, 2021, 12:15:08 AM »
Hi,

When I import my project, there is error say

 'Application' does not contain a definition for 'isWebPlayer'

Can I ask how to handle it?

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: Virtual Joystick Ecosystem Sample [ECOSYSTEM] [JULY 2019]
« Reply #32 on: March 02, 2021, 12:17:58 AM »
The target error code can be found here.

Code: [Select]
// (c) Copyright HutongGames, LLC 2010-2014. All rights reserved.
// REMOVED ECOSYSTEM FLAG TO AVOID DUPLICATES IN ECOSYSTEM BROWSER, AS IT SEARCHED THIS REP AS WELL


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 (Application.isWebPlayer)
{
#if UNITY_IPHONE
#else
Application.ExternalEval("window.open('"+url+"','"+WebWindowTitle.Value+"')");
#endif
}else{
Application.OpenURL(url.Value);
}
Finish();
}
}
}

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: Virtual Joystick Ecosystem Sample [ECOSYSTEM] [JULY 2019]
« Reply #33 on: March 02, 2021, 12:21:31 AM »
if (Application.isWebPlayer)

I changed it like this and it worked.

if (Application.platform == RuntimePlatform.WebGLPlayer)

Please let me know if there are any problems.