I declare a list but don’t instantiate it anywhere in the code, nor have I dragged anything into it in the inspector. When I print the list to console, it’s instantiated. I expect it to be null, not instantiated. Even if I set it to null when declaring it, it’s still instantiated at runtime, with size 0.
public List<myObj> myList = null;
void Start()
{
print(myList);
}
The only way it stays null is if I set it to null in Start(). Is this intended or a bug? And any way to have it stay null when declaring?