Function ambient_api_core::entity::set_component_if_changed
source · pub fn set_component_if_changed<T: SupportedValue + PartialEq>(
entity: EntityId,
component: Component<T>,
value: T
)
Expand description
Sets the component component
for entity
with value
if the new value is different from the current value