简体   繁体   中英

How can I prevent Korge views from updating?

I have an addFixedUpdater { } block attached to a view that is being executed on every frame. Is there a way to pause that block temporarily?

KorGE Views have a chainable speed property that acts as a multiplier. By default all the views have that property set to 1.0. If you set to 2.0 your blocks will be executed twice the times, while 0.5 make it to be executed half the times. In this case, to prevent the addFixedUpdater to be executed for a View subtree, you can just set the speed property to 0.0.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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