Overview
AGameplayProceduralAsset defines the procedural animation for an item or pose. It combines an idle animation, an optional overlay Animator Controller, and a list of features such as aiming, sway, and weapon offsets.
Assign it to Procedural Asset on the item’s GameplayItemView. When you equip the item, the view applies that asset to GameplayAnimationController. Different weapons can use different positions and aim settings while sharing the same basic features.
Asset settings
Create an asset with Assets ▸ Create ▸ KINEMATION ▸ Gameplay Framework ▸ Procedural Asset.- Default Idle Pose is the character’s resting pose for this item. It is a
GameplayAnimationAsset, so assign the character animation asset rather than the weapon’s own clip. - Overlay Controller is an optional Animator Controller for more complex overlay animation. It takes over overlay playback when assigned. Matching non-trigger parameters are copied from the character Animator.
- Blend Time controls the transition from the previous procedural pose. The controller uses the blend-in duration and easing when changing assets.
- Features is the ordered list of procedural adjustments. Click Add Feature to add one.
Feature order and weight
Features run from top to bottom. Each feature starts with the pose produced by the previous feature. For example, weapon placement changes the pose that ADS aligns, and sway then adds movement to that aligned pose. The controller prepares the IK targets before the feature list and solves the arms and legs afterward. Features can therefore move the weapon and hand targets before the final limb pose is calculated. Each feature has a Weight between0 and 1. Set it to 0 to turn off that feature’s effect while checking the others. Use intermediate values to reduce its influence. Removing a feature changes the list itself.
Configure the feature list in the editor. Changing feature order at runtime is different from adjusting a weight: the active animation jobs were built in the original order.
Per-weapon settings
GameplayProceduralOverride lets several weapons share a parent asset while changing selected features.
Use for the common settings in . The assets change individual weapon placement and aiming settings.
Edit the parent when all weapons should receive the change. Create a local feature override when only one weapon needs a different value. Revert removes the local change and uses the parent feature again.
An override keeps the parent’s feature order and substitutes the features you override. Its Default Idle Pose, Overlay Controller, and Blend Time are settings on the override asset itself. The parent must be a regular procedural asset; nested procedural overrides are not supported.
Change the active asset at runtime
GameplayItemView.OnEquipItem calls this method automatically:
SetWeaponLowered after the character has initialized. Each asset can use a different idle pose and feature settings.
Passing the same asset and view again does nothing. Passing null as the asset removes the active overlay source and its procedural features.
Adjust a feature
UseGetProceduralFeature<T>() to find the first feature of a type in the resolved list. On a procedural override, this returns the local override when one exists, or the inherited feature otherwise.
For example, this method changes the weight of the active weapon’s sway:
UpdateProceduralAsset with the same reference will rebuild a feature after structural changes. Switch between preconfigured assets for different feature lists.
Blending between poses
When the character changes procedural assets, the controller caches the current pose and blends from it into the new result. This smooths changes to weapon placement, idle pose, and procedural settings. The incoming asset’s Blend Time determines the transition. A blend-in time of0 applies the new setup immediately. The first procedural asset also applies immediately because there is no previous procedural pose to blend from.
UpdateProceduralAsset requests this transition automatically. For a custom animation change, you can request pose blending directly:
GameplayAnimationAsset instead controls that action’s blend into and out of its animation slot.
Feature stack
The pack template applies these five features in order:- Viewmodel offset aligns the weapon and hand IK targets.
- ADS aligns the weapon aim point with the character aim target.
- Procedural additives applies authored additive movement and runtime recoil.
- Sway applies spring motion from movement and look input.
- Aim offset distributes view pitch, yaw, and lean across the body and can turn the model in place.