Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bevyengine
GitHub Repository: bevyengine/bevy
Path: blob/main/examples/reflection/auto_register_static/src/bin/main.rs
9335 views
1
//! Demonstrates how to set up automatic reflect types registration for platforms without `inventory` support
2
use auto_register_static::main as lib_main;
3
use bevy::reflect::load_type_registrations;
4
5
fn main() {
6
// This must be called before our main to collect all type registration functions.
7
load_type_registrations!();
8
// After running load_type_registrations! we just forward to our main.
9
lib_main();
10
}
11
12