Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    11,321
    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:
    38,520
    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/