摘要: 对应的路径 bevy/examples/window/window_settings.rs 使用方式 运行程序后: 窗口会在3帧后显示 按 空格键:切换光标可见性和抓取模式 按 V 键:切换垂直同步 按 T 键:切换窗口层级 按 F 键:切换亮/暗主题 按 1/2/3 键:切换窗口控制按钮 鼠标左键 阅读全文
posted @ 2025-05-29 22:08 Furau 阅读(43) 评论(0) 推荐(0)
摘要: cargo run --example demo # 运行 examples/demo.rs 阅读全文
posted @ 2025-05-29 20:02 Furau 阅读(9) 评论(0) 推荐(0)
摘要: @startuml hide footbox skinparam sequence { LifeLineBorderColor Black LifeLineBorderThickness 1 LifeLineBorderStyle dashed } actor 用户 as User particip 阅读全文
posted @ 2025-05-29 01:59 Furau 阅读(8) 评论(0) 推荐(0)
摘要: @startuml hide footbox skinparam sequence { LifeLineBorderColor Black LifeLineBorderThickness 1 LifeLineBorderStyle dashed } actor 管理员 as Admin partic 阅读全文
posted @ 2025-05-28 22:17 Furau 阅读(10) 评论(0) 推荐(0)
摘要: 前言 SCS 渲染模块完全搬迁自Godot 4.2.2 理论上Godot4.x的设计工具和动效代码完全兼容SCS 小部件教程 https://space.bilibili.com/55245483 https://docs.godotengine.org/zh-cn/4.x/tutorials/ui 阅读全文
posted @ 2025-05-26 15:08 Furau 阅读(42) 评论(0) 推荐(0)
摘要: Name::new("namebox"), Text::new("戴安娜"), TextFont { font: asset_server.load("fonts/GenSenMaruGothicTW-Bold.ttf"), font_size:28.0, line_height: bevy::te 阅读全文
posted @ 2025-05-14 04:32 Furau 阅读(18) 评论(0) 推荐(0)
摘要: 文件目录结构 用户界面 (UI) 视口节点 viewport_node.rs UI材质 ui_material.rs 窗口穿透 window_fallthrough.rs 溢出处理 overflow.rs 溢出调试 overflow_debug.rs 显示与可见性 display_and_visib 阅读全文
posted @ 2025-05-12 12:46 Furau 阅读(44) 评论(0) 推荐(0)
摘要: 尽可能多的一些常用案例运行命令 方便复制 cargo run --example sprite_animation cargo run --example text2d 阅读全文
posted @ 2025-05-12 03:00 Furau 阅读(26) 评论(0) 推荐(0)
摘要: use bevy::prelude::*; fn main() { App::new() .add_systems(Update, hello_world_system) .run(); } fn hello_world_system() { println!("hello world"); } 阅读全文
posted @ 2025-05-11 12:27 Furau 阅读(19) 评论(0) 推荐(0)
摘要: /// 表示音频数据的来源 #[derive(Clone, Debug)] pub struct AudioSource { /// 音频源的原始字节数据 pub bytes: Arc<[u8]>, } 字段说明 字段名称 类型 描述 bytes Arc<[u8]> 音频源的原始字节数据。必须使用 阅读全文
posted @ 2025-05-11 12:24 Furau 阅读(51) 评论(0) 推荐(0)