Question by
magister_yoda_ · Aug 16, 2018 at 07:47 AM ·
animationspriteanimatorscaleanimator controller
Why default animation state rewrites scale of an object?
Hello. I'm trying to create a board of tiles for my game. I position tiles from code in Start()
method changing scale of each tile. Also I want create some animation and when user clicks a tile to play this animation.
If I have no animation then everything works perfect like this
But when I add component Animator
to control animation for my tiles, it ruins. The DefaultState
of AnimationController
rewrites scale of tiles and the screen gets look like this (scale is 1 for the tiles)
I also unchecked WriteDefaults
property on it, but it didn't help me.
What I have to do the AnimationController not to change calculated scale of the tiles
screen-shot-2018-08-16-at-110447-am.png
(124.5 kB)
screen-shot-2018-08-16-at-110514-am.png
(146.0 kB)
Comment
What does that controller look like? Do you have any animations running on the controller?