Class Attribute
Attributes are used to define parameters (such as health, speed) for a character.
Inheritance
System.Object
Attribute
Implements
Namespace: GameplayAbilitySystem
Assembly: Assembly-CSharp-firstpass.dll
Syntax
public class Attribute : object, IAttribute
Properties
| Improve this Doc View SourceAttributeType
Describes the type of this attribute
Declaration
public AttributeType AttributeType { get; set; }
Property Value
| Type | Description |
|---|---|
| AttributeType |
BaseValue
The base value of the attribute, unaffected by e.g. buffs
Declaration
public float BaseValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
CurrentValue
This current value of the attribute, after application of temporary effects, e.g. buffs
Declaration
public float CurrentValue { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
| Improve this Doc View SourceSetNumericValueChecked(IAttributeSet, ref Single)
Set the value of thie attribute
Declaration
public void SetNumericValueChecked(IAttributeSet AttributeSet, ref float NewValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IAttributeSet | AttributeSet | IAttributeSet this attribute belongs to |
| System.Single | NewValue | New value of the attribute |