set_mass_config_trait_property
Modify properties of an existing trait in a Mass Entity Config in-place by index or class, supporting any property type through Unreal's ImportText reflection.
Instructions
Modify properties on an EXISTING trait in a Mass Entity Config in-place.
Never replaces the Traits array, never creates new UObjects. Only touches the specific properties you provide — all other trait values stay intact. Uses Unreal's own ImportText reflection so it supports ANY property type (structs, arrays, object refs, meshes, LOD params, enums, etc.).
Identify the trait by EITHER trait_index OR trait_class (not both required). Set properties with EITHER property_name+property_value (single) OR properties dict (batch).
Args: asset_path: Path to MassEntityConfigAsset trait_index: Index of the trait in the Traits array (from get_mass_config_traits) trait_class: Class name or full path (e.g. "MassMovementTrait" or "/Script/MassMovement.MassMovementTrait") property_name: Single property to set (requires property_value) property_value: Value for property_name. For structs use dict, for object refs use asset path string, for enums use name string. properties: Batch set multiple properties {name: value, ...}
Examples: # Set MaxSpeed on movement trait by class name set_mass_config_trait_property( asset_path="/Jiggify/Game/.../DA_Config", trait_class="MassMovementTrait", property_name="Movement", property_value={"MaxSpeed": 300, "MaxAcceleration": 500} )
# Set LODMaxCount on visualization trait by index
set_mass_config_trait_property(
asset_path="/Jiggify/Game/.../DA_Config",
trait_index=4,
property_name="LODParams",
property_value={"LODMaxCount": [2000, 5000, 10000, 2147483647]}
)
# Batch set multiple properties
set_mass_config_trait_property(
asset_path="/Jiggify/Game/.../DA_Config",
trait_class="MassEnemyTrait",
properties={"MaxHealth": 50, "BaseDamage": 10, "MoveSpeed": 400}
)Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_path | Yes | ||
| properties | No | ||
| trait_class | No | ||
| trait_index | No | ||
| property_name | No | ||
| property_value | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |