Search Unity

  1. Click here to receive a gift with your purchase of Unity Pro or Unity Enterprise.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Screen.fullScreen useless in web player?

Discussion in 'Scripting' started by Deleted User, Sep 27, 2007.

  1. Deleted User

    Deleted User

    Guest

    The script reference for Screen.fullScreen says:

    My first question is, why not, since you can manually invoke fullscreen from the web player right-click menu and from a plugin call for widgets? Is is to prevent someone's computer going fullscreen as soon as they browse onto an aggressive Unity web player?

    My followup question is, if the variable is settable but ineffective in the web player, does that mean it can't be used to detect if you're in fullscreen mode? In other words, if you switch to fullscreen from the right-click menu, does that variable change?
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,620
    In Unity 1.6.2 you can't go fullscreen from a script.

    The variable still reflects whether it's currently fullscreen or not, just whenever you try to change it - it won't actually change.
     
  3. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,010
    First: the reason you can't go fullscreen in the Web player is to prevent the Unity Web player from phishing the user - a website could easily use Unity web player to fake a login screen.

    Second, you'd have to test it to find out, but I'm guesing it's just readonly.
     
unityunity