如何为场景形式节点进行动画alpha转换?
我需要将alpha过渡效果应用于我的场景形式节点。我尝试使用objectanimator从左到右效果。它运行良好,但是在α过渡的情况下,它的工作不正常。
这是我到目前为止尝试过的:
ObjectAnimator anim = ObjectAnimator.ofFloat(modelInnerNode2, "alpha", 1f, 0f);
anim.setDuration(1000);
anim.setInterpolator(new AccelerateInterpolator());
anim.setAutoCancel(true);
anim.setRepeatCount(ObjectAnimator.INFINITE);
anim.setRepeatMode(ObjectAnimator.RESTART);
anim.start();
I need to apply an alpha transition effect to my Sceneform node. I tried left-to-right effect with ObjectAnimator. It works fine but in the case of alpha transition it's not working fine.
Here's what I have tried so far:
ObjectAnimator anim = ObjectAnimator.ofFloat(modelInnerNode2, "alpha", 1f, 0f);
anim.setDuration(1000);
anim.setInterpolator(new AccelerateInterpolator());
anim.setAutoCancel(true);
anim.setRepeatCount(ObjectAnimator.INFINITE);
anim.setRepeatMode(ObjectAnimator.RESTART);
anim.start();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论