add_mass_trait_to_entity
Add an FMassTag to a Mass entity in the UE5 editor via archetype migration, but every entity sharing that archetype gets it. Use for bulk tagging.
Instructions
Add an FMassTag (a tag, not a trait or fragment, despite the name) to a Mass entity of the editor world (not PIE) by archetype migration. Caveat: EVERY entity sharing that archetype gets the tag, not only this one. Returns old_archetype_id, new_archetype_id and changed; inverse: remove_mass_trait_from_entity.
Returns: { entity_handle, old_archetype_id, new_archetype_id, tag, changed }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Reflected name of an FMassTag struct without the F prefix, as list_mass_trait_types returns it (e.g. "MassOffLODTag"); /Script paths do not resolve | |
| entity_handle | Yes | Entity handle as "Index:SerialNumber", two integers such as "12:3" (no braces); a no-longer-valid entity is an error |