Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的平移补间,可以将对象向上移动 200 像素。一旦它完成移动,它总是会弹回原来的状态,我不希望这样。我希望它留在我移动它的地方。
我知道这应该是一个明显的解决方案,但是我在任何地方都找不到方法/属性来让它停止而不是重置......
Animation.setFillAfter(true) 可能是您正在寻找的。