Skip to main content

PlayerCharacterStats.HasAttribute

Declaration#

public bool HasAttribute(string id)

Parameters#

NameDescription
idId of the Attribute to check for

Description#

True if object has an Attribute with the provided id.

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(PlayerCharacterStats source)    {        if(source.HasAttribute("testAttribute"))        {            Debug.Log("Attribute found");        }    }
}