SBZVariationSetUtils
SBZVariationSetUtils applies one appearance row from an SBZVariationSetData asset to a mesh component or actor. The utility updates the mesh, non-empty material overrides, all 36 Custom Primitive Data (CPD) values, and matching skeletal morph targets.
For the implementation API, see Suzie Native Bodies API.
Class information
| Item | Value |
|---|---|
Reflected class |
|
Native parent |
|
Implementation file |
|
Supported editor behaviour |
Applies meshes, materials, CPD values and morph targets. |
These are modkit Editor behaviours; Forge does not package the native bodies into the game.
Properties
This function library has no appearance-selection properties. Supply a variation set and row index to its functions.
Implemented functions
| Function | Inputs | Behaviour |
|---|---|---|
|
|
Applies the selected row to |
|
|
Applies the selected row to |
|
|
Applies the row to a supported skeletal or static |
|
|
Uses a character’s primary mesh, or an actor’s compatible mesh component. For variation viewers and menu armour actors, remembers the supplied selection for this editor session. Returns |
Editor callbacks
This file does not register class lifecycle callbacks. Other supported actors and components call the utility when their appearance needs updating.
All four functions are static and Blueprint-callable. VariationSet is an SBZVariationSetData reference and VariationIdx is a zero-based row index. Each returns a Boolean indicating whether application succeeded.
Runtime and default CPD are both populated. Null material overrides retain existing materials; changing selections retires overrides previously owned by the utility. Morph weights from the previous selection are cleared before applying matching names from the new row.
Known limitations
-
Invalid rows, missing dependencies and unsupported component types cannot be applied. CPD values and morph weights must be finite numbers.
-
Collision-shape bit handling is not restored. Appearance changes do not establish new collision behaviour.
-
The deprecated
Meshreference is a fallback for older skeletal sets; new sets should useSkeletalMesh.
For asset creation and preview steps, see Variations.