#[derive(PropsData)]
{
// Attributes available to this derive:
#[remote]
#[props_data]
#[prefab]
}
Expand description
Derive macro for the [PropsData
][raui_core::props::PropsData] trait
§Example
ⓘ
#[derive(PropsData, Debug, Default, Copy, Clone, Serialize, Deserialize)]
#[props_data(crate::props::PropsData)]
#[prefab(crate::Prefab)]
pub struct ButtonProps {
#[serde(default)]
pub selected: bool,
#[serde(default)]
pub trigger: bool,
#[serde(default)]
pub context: bool,
#[serde(default)]
pub pointer: Vec2,
}