Skip to main content

PlayerCharacterStats.RemoveAttribute

Declaration#

public virtual void RemoveAttribute(string id)

Parameters#

NameDescription
idId of Attribute to remove

Description#

Remove an Attribute by id

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(PlayerCharacterStats source)    {        string id = source.database.attributes[0].info.id;        source.RemoveAttribute(id);    }
}