ProceduralPresetData is an important part of the plugin. It’s a DataAsset that holds most of the adjustable settings, making them easy to configure and preview at runtime.
Presets are built from Preset Fragments: small objects that inherit from ProceduralPreset and define a specific set of configuration variables (for example, Offset Motion, Sway Motion, Recoil Motion, etc.). You can add multiple fragments to a single ProceduralPresetData, as shown below, and each component reads the fragment it needs.
Creating a Procedural Preset Data
In the Content Browser, Right-click
Select Miscellaneous → Data Asset
Choose ProceduralPresetData as the base class
Creating Custom Presets
In the Content Browser, Right-click
Select Blueprint Class
Choose ProceduralPreset as the base class
Create your settings variables and mark them as Instance Editable.
your procedural Preset will now show up as a fragment on any ProceduralPresetData assets.
Reading From Presets
Get a reference to the ProceduralPresetData .
Call GetPresset and select the desired fragment class.
You can now read any variables exposed by that fragment.