Skip to main content

StatProgressbar.SetStatIdAndSource

Declaration#

public virtual void SetStatIdAndSource(BasicStats source, string id)

Parameters#

NameDescription
sourceSource providing Stat information
idId of Stat to display information for

Description#

Updates both the Stat Id and source at once and refreshes UI.

Usage#

Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(StatProgressbar target, BasicStats source, string id)    {        target.SetStatIdAndSource(source, id);    }
}