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.

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