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

PlayerSettings:`Hide Home Button On iPhone X` C#

Discussion in 'Scripting' started by Dliix66, Sep 3, 2019.

  1. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
    Hello,

    I am trying to change the PlayerSettings' HideHomeButton checkbox using this simple line of code:

    Code (CSharp):
    1. PlayerSettings.iOS.hideHomeButton = true;
    However, unlike display in the unity's documentation, the checkbox remains unchecked and no error/warning is shown in the console. And using `Debug.Log(PlayerSettings.iOS.hideHomeButton)` displays `True`.

    Any idea why is this happening? How could I fix/bypass this?

    I'm using Unity 2019.1.5f1 and the code is executed in a custom inspector's button.

    Thanks in advance,
     
  2. Dliix66

    Dliix66

    Joined:
    Sep 5, 2017
    Posts:
    16
    Hello again,

    Still no idea about it ? I'm still struggling with this and I need it for my CI.

    Thanks to anybody who can help !
     
  3. ky92623

    ky92623

    Joined:
    Jan 9, 2020
    Posts:
    1
    me too.
    I'm using 2020.3.13f1
     
  4. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,623
    This is the general scripting channel and just posting "me too" here isn't going to get your problem solved for you.

    If you've got an issue on iOS then I'd suggesting posting in that channel here.

    Good luck.
     
    Kurt-Dekker likes this.
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,963
    And when you post there remember that just like here, NOBODY can read your mind.

    How to report your problem productively in the Unity3D forums:

    http://plbm.com/?p=220

    How to understand compiler and other errors and even fix them yourself:

    https://forum.unity.com/threads/ass...3-syntax-error-expected.1039702/#post-6730855

    If you post a code snippet, ALWAYS USE CODE TAGS:

    How to use code tags: https://forum.unity.com/threads/using-code-tags-properly.143875/