Registry / utility / bevy-property

bevy-property

JSON →
library0.3.0rscratesunverified

Dynamically interact with struct fields using their names in the Bevy game engine.

# Cargo.toml [dependencies] bevy_property = "0.3.0"
INSTALL
IMPORT
SIG · BEVY-PROPERTY
B
bevy-property
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Property
use bevy_property::Property;

Demonstrates dynamic field access using the Property derive macro.

use bevy_property::Property; #[derive(Property)] struct MyStruct { x: f32, y: f32, } fn main() { let mut s = MyStruct { x: 1.0, y: 2.0 }; s.set_property("x", 3.0).unwrap(); println!("{:?}", s.get_property::<f32>("x")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Meta
1
Resources
bevy-property — cargo add bevy-property · libregistry