- Home /
How do I access RectTransform attributes via animated script?
I made a curve for AnimationClip where I'm supposed to edit sizeDelta.y and anchoredPosition.y, but whenever I do that, it shows it's missing, and the animation doesn't play properly. And here's the code: ! If I try using sizeDelta instead of sizeDelta.y, it's no longer missing, but I can't have the curve use Vector2, only floats. Thanks in advance!
Answer by aleksanrt7217 · Jul 23, 2020 at 12:41 PM
Nevermind, I figured it out, I was supposed to use m_AnchoredPosition.y and m_SizeDelta.y instead of anchoredPosition.y and sizeDelta.y as attributes.
Your answer
Follow this Question
Related Questions
how to keep track of Lean Tween function? 0 Answers
Why when creating new animator controller for the character the character is not walking right ? 0 Answers
How can i check if animation has finished playing if the object have no animator attached ? 1 Answer
Animations out of sync? 0 Answers
Issue involving coroutines and animation 0 Answers