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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

BUG: Duplicating a UI object in the editor changes values

Discussion in 'UGUI & TextMesh Pro' started by Deleted User, Nov 22, 2014.

  1. Deleted User

    Deleted User

    Guest

    Duplicating a UI object (button for sure, and maybe panels too) sometimes causes the duplicated buttons to have a new scale like X: 0.9999999999, Y: 0.9999999999 Z:0.999999999999 as well as a new strange location which can vary from 3.########E to 4.########E.
     
    Feaver1968 likes this.
  2. Deleted User

    Deleted User

    Guest

  3. Mosy

    Mosy

    Joined:
    Aug 13, 2014
    Posts:
    24
    Actually that happens with any item that you duplicate in the editor. Not sure if it has always been there or not, but I have noticed it with every single item that I have tried to duplicate in 4.6. I generally try to keep my transforms easy to replicate by trying to only use 2 points of precision if any. This is an easy enough to replicate bug, just create a 4.6 game scene, and start creating items. Then go to the hierarchy pane, select one, press Ctrl + D (on Windows, not sure the keys on Mac), look at the transforms in the heirarchy.
     
    Deleted User likes this.
  4. Deleted User

    Deleted User

    Guest

  5. Feaver1968

    Feaver1968

    Joined:
    Nov 16, 2014
    Posts:
    70
    The ocd in me feels your pain. :)
    You should file a bug report for someone at Unity to ignore.
     
    Deleted User likes this.
  6. Deleted User

    Deleted User

    Guest

    It's probably a super-simple bug to fix but there are so many more important bugs that I doubt it'll get fixed. :(
     
  7. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    I'm seeing the same, but for me Buttons get a scale of 1.000002 or something like that, when the original had exactly 1.
     
  8. Yukichu

    Yukichu

    Joined:
    Apr 2, 2013
    Posts:
    420
    This isn't just for the UI. It's happened for as long as I can remember using Unity, which was... 4.0 or thereabouts. I think it has to do with the floating point precision when copying the values. I guess the Unity team could make it round the value when copying it, but... it's not really high priority. Just highlight multiple objects and set it to 1, but it might change again later if you edit it.

    In the end, I corrected them when I noticed them a lot, but sometimes just left them as is and didn't really see any issues.
     
  9. blizzy

    blizzy

    Joined:
    Apr 27, 2014
    Posts:
    775
    but... the OCD! :-(
     
    Feaver1968, Deleted User and Yukichu like this.
  10. VeNoM79

    VeNoM79

    Joined:
    May 13, 2014
    Posts:
    9
    same for me, using 5.4 beta. scale change from 2 to 2.000001
     
  11. Deleted User

    Deleted User

    Guest

    This bug is still present.