playMaker

Author Topic: Open URL [SOLVED]  (Read 9401 times)

gamedivision

  • Full Member
  • ***
  • Posts: 227
Open URL [SOLVED]
« on: February 08, 2013, 04:42:42 PM »
is it possible to open an internet page with playmaker,i thought WWWObject would have but doesn't thanks
« Last Edit: March 16, 2013, 10:21:41 PM by Alex Chouls »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Open URL
« Reply #1 on: February 09, 2013, 02:51:37 AM »
Hi,

 I made a custom actions a while ago to cover this:

http://hutonggames.com/playmakerforum/index.php?topic=1451.0

bye,

 Jean

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Open URL
« Reply #2 on: February 09, 2013, 03:47:46 AM »
Thank you jean your a legend  ;D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Open URL
« Reply #3 on: February 09, 2013, 01:50:24 PM »
A "Living" Legend please, lukily for me   :P

shinodan

  • Full Member
  • ***
  • Posts: 180
    • Shinozone
Re: Open URL
« Reply #4 on: February 10, 2013, 09:32:55 AM »
Can i just ask while its on topic how i can return to the game after the webpage has been displayed or something?

gamedivision

  • Full Member
  • ***
  • Posts: 227
Re: Open URL
« Reply #5 on: February 10, 2013, 01:49:43 PM »
I thought you'd have to double tap the home button then click on your game as its still running in the background

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: Open URL
« Reply #6 on: February 13, 2013, 04:27:22 PM »
I am having trouble with using the open url and the webplayer build option.

Issue when in web player build "when I run the web player", the new url indeed does open but I lose the unity webplayer.

I have to re launch the unity webplayer to get it back.

I am very new to playmaker quite possible i have my setup wrong.

main camera

state "create gui"---action gui button
                                      send event "engaged"


trans  "engaged"

state "send event"--action send event
                                      specify game object "drag object here"
                                      fsm name FSM
                                      send event "engaged"
                                     no delay
                                     not every frame  
trans "FINISHED"

I have used an empty game object with a fsm

state "idle"
trans "engaged"

state "open url"
trans "FINISHED"--action application open url
                            url enter my url name here

global var "engaged"

When ran within unity this works, you click the button and a new window opens to the specified web page.

When I build and run and click the button, web page opens however unity webplayer is lost.

note:

I have a second button adjacent to the the first using the same setup but using a different global var.

What I did was add a new fsm to the camera with the changed different global var.

Both buttons work only in unity and not in the web build.

The first button with the first fsm when clicked shows internet explorer error, the second button works and goes to the web page.

However the unity webplayer is lost no matter what.

when I close the the window I also lose the webplayer.

asfaik i am only closing the web page window and not all windows.

Sorry for such a long post, but i am trying to make my setup clear.

If someone could please help.

updated:

button issues resolved.

seems my fsm's are working correctly

within the url field ensure you put the complete address.

webplayer return solved "hit back button on browser" do not close the window!

Is it possible for the open url app to open a new tab and its own window and still have the unity webplayer running ?

currently the webplayer is replaced with the new opened url.










 
« Last Edit: February 14, 2013, 01:44:47 PM by colpolstudios »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Open URL
« Reply #7 on: February 15, 2013, 02:35:46 AM »
Hi,

 Yes there is a way:

http://answers.unity3d.com/questions/32531/applicationopenurl-on-webplayer-to-open-in-a-new-t.html

 I'll see if I can make an update this week end on that action.

Bye,

 Jean

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: Open URL
« Reply #8 on: February 15, 2013, 04:18:52 AM »
Please let us all know when you get the time to update the action.

my unity project is awaiting this update.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Open URL
« Reply #9 on: February 16, 2013, 02:43:36 AM »
Hi,

 Here we go, you can grab the action here, I updated the post:

http://hutonggames.com/playmakerforum/index.php?topic=1451.msg6212#msg6212

bye,

 Jean

colpolstudios

  • Sr. Member
  • ****
  • Posts: 370
Re: Open URL
« Reply #10 on: February 19, 2013, 08:42:19 AM »
Re open url update.

After update I now get a msg from microsoft security essentials

quote "security essentials dectected items on your PC that it doesn't recognize.
By sending the files listed below, you can help MS analysts determine whether these items are malicious"

file path appData\local\temp\unitywebplayer\temp

What steps do I need to take to resolve this ?




jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Open URL
« Reply #11 on: March 15, 2013, 09:21:19 AM »
Hi,

 is it related to the use of this open url action? it looks like you have a virus more than anything else

bye,

 Jean