Search Unity

Bug Bug in Inspector - Not able to type anything in string array element

Discussion in 'Editor & General Support' started by ajeets1978, Jun 16, 2022.

  1. ajeets1978

    ajeets1978

    Joined:
    Mar 10, 2019
    Posts:
    25
    • Write the following code in any script to test and assign it to the game object.
    Code (CSharp):
    1. [SerializeField] public string[] randomAIPlayerName;
    • Keep the Game Tab and all the other tabs in same window including the inspector tab. You won't be able to type anything into the string element.

    Now it has a workaround but I still believe its a bug.

    Workaroud: Either move Game tab or inspector tab out of the editor Or Reset Layouts few times Or Restart Editor.
     
    Last edited: Jun 16, 2022
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,005
    Can you post a screenshot?

    Since you mention „the string element“ in singular you don‘t accidentally try to enter a string in the size field of the string[] array perhaps?
     
  3. ajeets1978

    ajeets1978

    Joined:
    Mar 10, 2019
    Posts:
    25
    WHAT ???