PlayerCharacterStats.SetBackground
Declaration#
public virtual void SetBackground(string id)Parameters#
| Name | Description |
|---|---|
| id | Id of the Background to set |
Description#
Set the Background of this object
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(PlayerCharacterStats source) { string id = source.database.backgrounds[0].info.id; source.SetBackground(id); }
}