Author Topic: Issue with the new anchoring system  (Read 2047 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Issue with the new anchoring system
« on: October 21, 2014, 03:50:38 PM »
I'm working with the new anchoring system to stretch the background to match screen size, but something weird is happening. If I tested in the editor there's no issue until I click play and the background shrink to his minimum size. You can see in the image attached the anchors goes far away from the screen and I don't know why. I tried anchoring to the UIRoot and UIPanel and it happens the same.

The hierarchy is this:
UIRoot
--GameObject (UIWindow custom script)
----UIPanel
------ UIAnchor/Center (yeah, I know is deprecated)
--------UIWidgets

At the top of the image you can see how far goes the anchoring and at the bottom the screen for reference.

*EDIT*
The only way the background keep the shape is keeping the target at center, is not what I want but at least didn't break.

What could be?
« Last Edit: October 21, 2014, 04:44:52 PM by jeldrez »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Issue with the new anchoring system
« Reply #1 on: October 22, 2014, 05:26:25 AM »
Most common cause of stuff like this: having multiple cameras drawing the UI layer.

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Issue with the new anchoring system
« Reply #2 on: October 23, 2014, 08:32:52 AM »
At the end I notice that programmers changed the UIPanel script. He added new behaviors changing how it works the update. This panel was not updating, making anchors fails.

Thanks anyway