UI 개체의 움직이는 애니메이션을 만드는 방법을 알고 있지만 다른 종횡비 화면을 지원하도록 만드는 방법은 무엇입니까?
예를 들어, 왼쪽 하단 모서리에 UI object_1이 있고 오른쪽 상단 모서리에 object_2가 있으며 둘 다 화면 모서리를 기준으로 위치를 조정했습니다. object_1에서 object_2로 이동하는 UI 이미지를 만들고 싶습니다.
문제는 object_1과 object_2가 다른 해상도에서 다른 위치 (화면 비율에 따라 비율이 다른 경우에도)에 있다는 것입니다. 그러면 다른 해상도를 지원하는 움직이는 애니메이션을 어떻게 만들 수 있습니까?
조언을 해주셔서 감사합니다!
스크린 샷 : 1 18 : 9 화면에서 왼쪽 아래 확인란이있는 이동 시작 지점.
2 Moving ending point where the left-lower checkbox is on 18:9 screen.
3 Moving starting point, changed to 16:9 screen, and the screenshot shows that the position of the finger image does not match where the checkbox is.
4 Moving ending point on 16:9 screen, same problem with the above one.
OK, problem solved. It turns out the animation supports changing anchors at certain frames. So just turn on recording and adjust whatever you like.
In my project, first frame I set the finger image's anchor to the middle-lower point then record its position; when starts the moving animation, changes its anchor to middle-upper point then set the destination position. If the screen aspect ratio changes, since the animation also uses the right anchor data with the two check boxes, they'll match perfectly.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다