How to animate RectTransform?

Slate Forums Support How to animate RectTransform?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1381
    duerer
    Participant

    Hello,

    I’d like to animate a UI object with RectTransform, however the Animate Property feature allows access to the standard Transform component only.
    If I attach a proxy script for my gameobject that has a public RectTransform, I still can’t access the RectTranform with the Animate Property (but the proxy object is selectable!)

    Thanks in advance!

    #1382
    Gavalakis
    Keymaster

    Hello,

    In the ‘Animate Properties’ clip, you can still use the “Transform” properties for animating a UI RectTransform position, rotation and scale values. Thus, when you hit the “Add Property” button, simply select ‘Self/Transform/Position’ for example, and you will be able to animate the position of the UI RectTransform element as normal.

    Please let me know if that works for you.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #1386
    duerer
    Participant

    Hi Gavalakis,

    unfortunately, that is not enough for me, as I would like to animate certain RectTransform-exclusive parameters.
    An example:
    I have a UI image, and I’d like to animate its size. Since the UI image is a RectTransform object, its position is anchored e.g to the right.
    If I modify the width, the UI image would remain anchored to the right, thus it would look like expanding from right to left.

    Unfortunately this cool UI animation effect could not be achieved with a simple transform position/scale/rotation animation.

    Best regards,
    duerer

    #1395
    Gavalakis
    Keymaster

    Hello,

    Sorry for the late reply!
    I understand. The system actually supports animating RectTransforms parameters, but because right now the UI checks ‘if (object is Transform)’ and RectTransform is indeed a Transform, the menu that shows up is override where it should not have. I have already made the necessary changes for the next version and now RectTransform properties shows up correctly and possible to be animated.
    If you want, I can send you the new version earlier so that you can continue with your project. If so, please just send me an email to ‘support_AT_paradoxnotion.com’ with the new version request, and I will send it to you as soon as possible.

    Thank you!

    Join us on Discord: https://discord.gg/97q2Rjh

    #1399
    duerer
    Participant

    Hi Gavalakis,

    thank you for the reply!
    It is OK to include this feature in the next official release, fortunately no time pressure on my side – yet 🙂

    Could you please tell me an ETA when the new version will be officially released?

    Best regards,
    duerer

    #1400
    Gavalakis
    Keymaster

    Hey!

    Thanks for the follow up post.
    I expect the new version to be released within the next week 🙂

    Thank you.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.