I'm trying to get a Unity WebPlayer control to resize when the browser is resized. Here's the code I think is pertinent:
From various `alert()`s in the code, I can verify that `ResizeUnity()` is being called when I change the size of the window. I can verify that `winWidth` and `winHeight` are getting proper values assigned to them upon resizing. But, no matter what I do to the browser window, the Unity WebPlayer object stays the same size it was when it was loaded.
What am I doing wrong?
↧