unreal.GameplayAttribute

class unreal.GameplayAttribute(attribute_name: str = '')

Bases: StructBase

Describes a FGameplayAttributeData or float property inside an attribute set. Using this provides editor UI and helper functions

C++ Source:

  • Plugin: GameplayAbilities

  • Module: GameplayAbilities

  • File: AttributeSet.h

Editor Properties: (see get_editor_property/set_editor_property)

  • attribute (FieldPath): [Read-Write] Attribute

  • attribute_name (str): [Read-Only] Attribute Name: Name of the attribute, usually the same as property name

  • attribute_owner (Struct): [Read-Only] Attribute Owner: FProperty* Attribute;

property attribute_name: str

[Read-Only] Attribute Name: Name of the attribute, usually the same as property name

Type:

(str)