validate_property

Function validate_property 

Source
pub unsafe extern "C" fn validate_property<T: GodotValidateProperty>(
    instance: GDExtensionClassInstancePtr,
    property_info_ptr: *mut GDExtensionPropertyInfo,
) -> GDExtensionBool
Expand description

Callback for validate_property.

Exposes PropertyInfo created out of *mut GDExtensionPropertyInfo ptr to user and moves edited values back to the pointer.

§Safety

  • Must only be called by Godot as a callback for validate_property for a rust-defined class of type T.
  • property_info_ptr must be valid for the whole duration of this function call (i.e. - can’t be freed nor consumed).