Answer the question
In order to leave comments, you need to log in
I can't pass an array to another Unity class, but what's wrong?
There is a class that inherits from the parent, the parent has an array that has get; set;
However, in the child class it is filled, while in the parent class it remains empty.
Tried the same with creating a structure. The same.
Parent class:
internal ComputerStructForSend[] Computers = new ComputerStructForSend[5];
Computers[countCompsAdded].cpu = Field[0].text;
Computers[countCompsAdded].ram = Field[1].text;
Computers[countCompsAdded].hardcount = Field[2].text;
Computers[countCompsAdded].count = Field[3].text;
Computers[countCompsAdded].year = Field[4].text;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question