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

UI Components snapping to center on apply

Discussion in 'UGUI & TextMesh Pro' started by mrCharli3, Mar 26, 2018.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    956
    I have an issue where some of my UI components snap to the middle of their parent when I click apply. No idea what is causing it, they are identical to some components that work.

    Here is an example:



    As you can see the energy-bar snaps to the middle of it background, even though it's identical to the health-bar in every way. And the health-bar works.

    Whats going on?
     
  2. Rational-MA

    Rational-MA

    Joined:
    Mar 6, 2015
    Posts:
    59
    Which version of Unity are you running? Seems similar to a known isssue. Was fixed, but it may have popped up again according to the second thread.

    https://forum.unity.com/threads/applying-prefab-changes-changes-recttranform-properties.502542/
    https://forum.unity.com/threads/very-irritating-ui-bug-has-anyone-else-experienced-this.510596/
     
  3. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    956
  4. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
  5. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    956
    Oh, and these dont show up when you check for updates inside unity?
     
  6. methos5k

    methos5k

    Joined:
    Aug 3, 2015
    Posts:
    8,712
    If you say you've recently checked and not seen that.. then, they do not ;) heh

    I almost always seek out new releases and/or patches on my own.
     
    mrCharli3 likes this.