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.