Search Unity

Problem with animating UI image!

Discussion in 'Animation' started by mahdiii, Nov 20, 2017.

  1. mahdiii

    mahdiii

    Joined:
    Oct 30, 2014
    Posts:
    856
    Hi all. I would like to animate UI image (sprites)
    but I think it is not as easy as Sprite renderer.
    -parent
    --child image
    my sprites have different resolutions. how can I add sprites automatically with exact resolutions?
    because my image has the constant size. So I need to change that for every sprites?!
    the second problem is when I want to scale up/down its parent,the child image doesn't follow it.
    but I can do it easily when I use sprite renderer. it added sprites automatically inside animation with their resolutions and I can scale up/down in different situations.
    Do I need to handle that using scripting?
    thx
     
  2. mahdiii

    mahdiii

    Joined:
    Oct 30, 2014
    Posts:
    856
    I solved it by preserve aspect