bag.Init(introOutroDuration, walkingDuration, new Vector3(_gridSize, -_gridSize));
Now, in game I'm expecting to work perfectly, instead the localSpace coordinates of the bag are (0,-576, 0) but the bag is far from reaching the bottom of the widget, like there was some kind of weird scaling going on. Even the walking animation to the right stops before it has reached the other corner.
The matchboard is inside a UIRoot with Scaling Style Constrained, and content Width and Height set to 720, both with the Fit option enabled.
What's going on? By what should I multiply _gridSize? I tried with UIRoot.GetPixelSizeAdjustment(gameObject) without success...
Thanks for your time
Title: Re: Can't position a Texture with localposition because of weird scaling problem
Post by: ArenMook on April 20, 2015, 07:53:36 PM
Without knowing where your actual tween happens there isn't much I can suggest. Check the pivot points of your objects. You mentioned "top-left centered" which isn't clear... is it top-left aligned, or center-aligned? The child object that you are tweening must also have a proper pivot point set. Check the scales of objects leading up to your tweened object as well.