Skip to main content

upsert_field

Function upsert_field 

Source
pub fn upsert_field(structure: &mut GffStruct, label: GffLabel, value: GffValue)
Expand description

Updates an existing field value or inserts a new field when missing.

Updates the first field carrying label. On a struct that holds the label more than once, such as a .dlg node’s six SoundExists copies, the others keep the value they had.