PlayerCharacterStats.HasAttribute
Declaration#
public bool HasAttribute(string id)Parameters#
| Name | Description |
|---|---|
| id | Id 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"); } }
}