Skip to main content

GDTKItemStatSource.SetStatValue

Declaration#

public void SetStatValue(string id, float value)

Parameters#

NameDescription
idId of the stat to set
valueValue to set

Description#

Set the value of a stat by id

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(GDTKItemStatSource target)    {        target.SetStatValue(target.statIds[0], 1.2f);    }
}