kay I need some help in terms of why Unity is Updating so oddly
public class LoadAllQs : ScriptableObject
{
public static Action OnLoadAllQuestions;
private void LoadAllQuestions()
=> questionSOs = Resources.LoadAll<QuestionSO>(folder).ToList();
private void OnEnable()
=> OnLoadAllQuestions += LoadAllQuestions;
}
I've this static Action, that gets called whenever a
new QuestionSO gets created:`
public class QuestionSO : ScriptableObject
{
private void OnEnable()
=> LoadAllQs.OnLoadAllQuestions();
private void OnDestroy()
=> LoadAllQs.OnLoadAllQuestions();
}
But it updates in a weird way. When I create the first SO, it doesn't update, but when I create the 2nd or 3rd, it does