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. Dismiss Notice

[2017.2.0f3] Can't rename objects in hierarchy while cont. size fitter and horiz. layout is enabled

Discussion in 'Editor & General Support' started by Hellwaiker, Oct 24, 2017.

  1. Hellwaiker

    Hellwaiker

    Joined:
    Jan 8, 2016
    Posts:
    113
    Hi,

    This is what I did, I opened new scene. Added simple UI Image to the scene and added Horizontal Layout and Content size fitter to the image. I set horiz/vert fit to preferred size, and in horizontal layout enabled control size, disabled force size.

    Now Basically if I select any object in hierarchy, click F2 and try to rename it, the rename field gets closed and object gets deselected.
    I can't rename at all by double click or right click and rename.
    If I disable the content size fitter or horizontal layout everything is fine. Could it be that my setup is throwing content size fitter into forcing editor to update every frame?

     
  2. Twibby

    Twibby

    Joined:
    Apr 28, 2013
    Posts:
    1
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Ran into a similar issue when renaming with right click -> Rename. It seems like when I pressed Shift to make a capital letter the field would lose focus. I didn't really investigate though as I realized the rename via inspector work around within a few minutes. Super annoying though.
     
    luislodosm likes this.
  4. BosAtWork

    BosAtWork

    Joined:
    Aug 14, 2015
    Posts:
    1
    I can confirm this issue, it is really frustrating. When using Playmaker I can't even type a single space before the rename field gets deselected. This is making working with unity very irritating and unproductive
     
  5. elich11

    elich11

    Joined:
    Sep 25, 2012
    Posts:
    5
    Restarting the project fixed it for me.
     
  6. luislodosm

    luislodosm

    Joined:
    Apr 26, 2016
    Posts:
    26
    Same. Unity 2018.2.0f2. Mac. Unable to use capital letters on hierarchy.
     
  7. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    The issue was resolved for me when I eventually moved to 2017.4. I don't know if they eventually fixed it in a 2017.2 patch release, or 2017.3. I'm currently on 2018.2 now, and I can't recall hitting this issue again with that one either. Windows 10 here by the way, so maybe it is Mac specific with 2018.2.
     
  8. luislodosm

    luislodosm

    Joined:
    Apr 26, 2016
    Posts:
    26
    My issue was caused by this code:
    Code (CSharp):
    1. void OnDrawGizmos()
    2. {
    3.    gameObject.name = "someName";
    4. }
     
  9. Hexenwerk

    Hexenwerk

    Joined:
    Apr 11, 2013
    Posts:
    2
    Same here. Quite annoying, but it helps indeed to temporarily disable the content size fitter - as a workaround.
     
  10. farazk86

    farazk86

    Joined:
    May 31, 2017
    Posts:
    191
    Having this same issue in 2019.4.23f1.

    I had the
    OnDrawGizmos()
    in a script that was attached to a single gameobject. This was causing the problem. Commenting out the entire function fixed it
     
  11. Uncle_Mikey

    Uncle_Mikey

    Joined:
    Jul 16, 2016
    Posts:
    2
    Same thing happening NOW in 2019.4.3f1!!! FFFFFFRUSTRATING!!!!!!
     
  12. KwahuNashoba

    KwahuNashoba

    Joined:
    Mar 30, 2015
    Posts:
    110
    Happening in 2020.3.16f1 also
     
  13. AdamBebko

    AdamBebko

    Joined:
    Apr 8, 2016
    Posts:
    161
    Happening in 2020.3.26f1 also. (Mac Monterrey)