Search Unity

Animating scalable interface?

Discussion in 'Immediate Mode GUI (IMGUI)' started by _Adriaan, Oct 21, 2014.

  1. _Adriaan

    _Adriaan

    Joined:
    Nov 12, 2009
    Posts:
    481
    Hi there!

    I animated my interface so that screens fly in from the side, using unity's animation controller and animations that animate the Rect Transform position. I have a full screen panel that stretches to the size of the screen using the anchors, and nicely moves in from the side to the center of the screen.

    However, the animation messes up when I change the screen size. Apparently, the only way to animate the position of Rect Transforms is to enter hardcoded numbers in the animation...



    Am I missing a technique here, or am I simply unable to use unity animations for this?
     
  2. _Adriaan

    _Adriaan

    Joined:
    Nov 12, 2009
    Posts:
    481
    Last edited: Oct 21, 2014