ue_add_variable
Add a member variable to any Blueprint and recompile. Configure type, replication, instance editing, and default value.
Instructions
Aggiunge una variabile membro a un Blueprint e ricompila. Richiede UE 5.4+
(l'API Python per le variabili non esiste nei motori precedenti; ue_status
riporta in capabilities cosa supporta il motore corrente).
Args: blueprint_path: path del Blueprint. var_name: nome variabile, es. "OccupiedBy". var_type: bool | int | int64 | float | string | name | text | struct | object | class. sub_type: per struct ("Vector", "Rotator", "Transform", "LinearColor") o per object/class il nome della classe ("Actor", "PlayerState"). replicated: marca la variabile come replicata (networking). instance_editable: esposta e modificabile sulle istanze nel livello. default_value: valore di default scritto nei Class Defaults (solo tipi semplici).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sub_type | No | ||
| var_name | Yes | ||
| var_type | No | float | |
| replicated | No | ||
| default_value | No | ||
| blueprint_path | Yes | ||
| instance_editable | No |