This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example Scriptable Object. Instance must be placed in Resources folder and have the same name as the class, type of generic parameter must be your class. | |
using UnityEngine; | |
[CreateAssetMenu(fileName = "MySingletonSO")] | |
public class MySingletonSO : SingletonScriptableObject<MySingletonSO> | |
{ | |
// Here goes your data. This class can be called by the static Instance property, which will automatically locate the instance in the Resources folder. | |
} |