Bevy 协程系统的过程宏
本包提供了 #[coroutine_system] 宏,用于将普通的 Bevy 系统转换为支持协程的系统。
#[coroutine_system]
use bevy_coroutine_system::coroutine_system; #[coroutine_system] fn my_system(query: Query<&mut Transform>) { // 系统代码... }