Please click on Neep-Help, Live chat Online
I want to do the same thing from unity scene
Please Note- I need to open a pop-up like this from exe and webplayer.
Please click on Neep-Help, Live chat Online
I want to do the same thing from unity scene
Please Note- I need to open a pop-up like this from exe and webplayer.
Not sure which language your using but this works for both .exe and webplayer. I wrote it awhile back but should still work. ![]()
#pragma strict
/*
* Author: Andrew Adams
* Date: 11/24/2012
*
* This script will let you launch a web page in a new window from
* a standalone or webplayer application.
*/
var URL : String; //URL Address to attempt connection to.
var Title : String; // Title the web window should have.
function Start () {
if(URL == "" || URL == null){
URL = "http://google.com/";
} //Just in case you forget the URL
if(Title == "" || Title == null){
Title = URL;
} // In case you forget the Title.
if(Application.isWebPlayer){
//We are in a webplayer
//Build the external eval call string
var call : String = "window.open('" + URL + "','" + Title + "')";
//Launch the external web page in a new window.
Application.ExternalEval(call);
} else {
//We're in the editor - standalone exe - or otherwise
//Launch a new web page
Application.OpenURL(URL);
}
}
where in here have you managed the size of the page to be opened ??
coz thats my most important step
any help please ?
My main motive is to open the pop-up not the page
You can control the size of the window from withing the opened page using JavaScript.