Fix scoped editor UI action state

This commit is contained in:
Rbanh committed 2026-07-13 06:39:30 -04:00
1 parent 4b33f32357
commit 9e23ae731f
9 files changed
+428 -114

No files matched your search

+6 -1
View File
@@ -78,7 +78,12 @@ impl EditorCommandRegistry {
}
}
/// Custom inspector body for level objects (game crates register via [`register_actor_inspector_section`]).
/// Custom inspector body for level objects (game crates register via
/// [`register_actor_inspector_section`]). Synchronous [`Self::ui`] callbacks run while
/// [`UiState`] is scoped out of `World`; implementations must not request that resource. Keep
/// extension-owned transient state in independently registered resources, use
/// [`crate::ui::request_ui_selection`] and [`crate::ui::request_editor_tab`] for host UI changes,
/// or defer other cross-panel work through extension-owned commands or events.
pub trait ActorInspectorSection: Send + Sync {
fn id(&self) -> &str;
fn title(&self) -> &str;