Set Struct Member
Rename a member, change its type, or change its default. A RENAME is safe because members are keyed by GUID. A TYPE CHANGE is not: every value of that member everywhere is reset.
hf_set_struct_memberWriteArguments
| Name | Type | Description |
|---|---|---|
memberreq | string | Member name or GUID from hf_describe_struct. |
structreq | string | |
accept_data_loss | boolean = false | Required for a type change. |
default | string | |
force | boolean = false | Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first. |
rename_to | string | |
type | string | New type. Resets every existing value of this member. |
Related tools
Nearby in Data assets:
- Remove Curve Key
- Remove Data Table Row
- Remove Enum Entry
- Remove Struct Member
- Rename Data Table Row
- Set Curve Interpolation
- Set Curve Key
- Set Enum Entry
All 25 tools in Data assets — 16 more not listed here.