Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Full screen on mobile

Discussion in 'Project Tiny' started by leomcpugo, Oct 2, 2022.

  1. leomcpugo

    leomcpugo

    Joined:
    Aug 1, 2016
    Posts:
    2
    Hello!

    If you access this project using a mobile browser (I'm using an iPhone) it first opens a small screen where you can click and it will open it in full screen.
    https://simmer.io/@TheRoccoB/tiny-arms-revenge-project-tiny
    How is the full screen is achieved?

    I've tried this by adding a button with a pointer-down event trigger calling Screen.fullScreen = true, but no response.

    I'm using Unity 2021.3.11

    Thanks in advance
     
    Last edited: Oct 2, 2022
  2. WindReiter

    WindReiter

    Joined:
    Jul 29, 2022
    Posts:
    7
    I would also like to know the answer to this! Fullscreen on mobile doesn't work for me.
     
  3. inyourpc

    inyourpc

    Joined:
    Jul 14, 2013
    Posts:
    9
    Are you using simmer plugin or unity native build player?
    If you use latest unity lts verion and build with unity native webplayer for mobile it should be full screen by default on mobile screens!
     
  4. programmer119

    programmer119

    Joined:
    Sep 27, 2021
    Posts:
    94
    sorry im very late.
    i recommend you. add code
    "
    if( IsSafariBrowser() )
    {
    fullScreenButton.SetActive(false);
    }
    "
    upload_2023-2-9_19-34-54.png