create_gameplay_effect_container
Creates a native UGameplayEffect asset at a specified package path with an optional duration policy. Returns any existing asset untouched instead of overwriting it.
Instructions
Create and save a native UGameplayEffect asset (despite the name, not a container and not a Blueprint) at package_path/name. An existing asset there is returned untouched (already_existed=true). apply_gameplay_effect needs a class, so use create_gameplay_effect_blueprint for an effect it can apply.
Returns: { name, asset_path, already_existed, duration_policy, duration_magnitude, created }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Asset name without a path, e.g. "GE_Damage" | |
| package_path | No | Target content package path where the asset is created (default /Game/GameplayEffects) | |
| duration_policy | No | Duration type, case-insensitive: Instant, HasDuration or Infinite (default Instant) | |
| duration_magnitude | No | Duration in seconds, applied when policy is HasDuration (default 0.0) |