简体   繁体   English

如何在ursina引擎中将Button实体从一个地方动画到另一个地方?

[英]How can I animate a Button entity from one place to another in ursina engine?

I am new to Ursina engine.我是 Ursina 引擎的新手。 I want to animate a button entity from one place to another using the animate_z method, but am unable to do so.我想使用 animate_z 方法将按钮实体从一个地方动画到另一个地方,但我无法这样做。 Any suggestions?有什么建议么?

Use animate_position().使用 animate_position()。 animate_z will only change the depth, so you won't see the effect unless you have thing behind or in front, or if it's 3d. animate_z 只会改变深度,所以你不会看到效果,除非你有东西在后面或前面,或者如果它是 3d。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM