Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resizing the Unity Web Player - UnityObject2

Discussion in 'Editor & General Support' started by emerMurph, May 16, 2013.

  1. emerMurph

    emerMurph

    Joined:
    Apr 14, 2013
    Posts:
    2
    Hi everyone, I posted a problem yesterday but I don't think I was very clear in explaining it. I hope you can help!

    I am embedding my Unity application into a website, using code provided by the Unity manual (Working with UnityObject2), and I have succeeded in embedding it to the site. However, in Firefox and IE, the player window stretches all the way across the browser window (regardless of how big or small the browser window is), and the height is constant at about 250 pixels. In Safari it's just much bigger than I would like it to be. As far as I can tell the code I used doesn't have any specifications for size, and it's nothing to do with my CSS styling in my web page, as I have tried it in a blank page with the same effect. Is there a way of doing this that will allow for a size similar to what you see in the game view of the 2 by 3 view?

    You can see the code I used here:

    http://docs.unity3d.com/Documentation/Manual/WorkingwithUnityObject.html#initPlugin

    Sorry if there's a really basic solution to this, I am quite new to Unity :)
     
  2. Bomadeno

    Bomadeno

    Joined:
    Jul 9, 2012
    Posts:
    3