We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
register_component
1 parent 172c020 commit 6bae04aCopy full SHA for 6bae04a
crates/bevy_ecs/src/world/mod.rs
@@ -247,6 +247,10 @@ impl World {
247
}
248
249
/// Registers a new [`Component`] type and returns the [`ComponentId`] created for it.
250
+ ///
251
+ /// # Usage Notes
252
+ /// In most cases, you don't need to call this method directly since component registration
253
+ /// happens automatically during system initialization.
254
pub fn register_component<T: Component>(&mut self) -> ComponentId {
255
self.components.register_component::<T>()
256
0 commit comments