I have a static class I use in testing that's supposed to create an instance of a class. However, when I do
public static BattlerData CreateBattlerData()
{
BattlerData data = new();
return data;
}
The newly created variable data is null? I've never seen this before, and Googling for anything like it hasn't come up with any similar cases. Does anyone know why this might happen?
See screenshots for the evaluation that the new object is null, and confirmation that the class is not a GameObject or anything like that.