Hello,
i have unity project with only prefeb of a Cube, build as webplayer streaming.
i would like to put this webplayer in a web page using visual studio 2010, asp.net.
so i open a new asp.net project, open a new webform. i copy the code from the webplayer(the page unity built) to my webform.
now when i run this page it contains the webplayer.
i wanna add a button and a textbox, when the user click on the btn the textbox changes its text.
input type=“text” name = “text1” value=“hoello” id=“123”/>
input type=“button” name=“button10”
value=“yaron” onclick=Anyoutput() />
script type=“text/javascript” language=“javascript”>
function SaySomethingToUnity() {
document.getElementById(“123”).value = “pls let it change me”;
}
script>
but when i put this on the page with a webplayer, nothing happens for some reason, as if javascript events are disabled. any ideas on whats the problem?
Best Regards
Ron