Hello,
I have an Unity App that has just a label in the center of the screen, the Main Camera GameObject, a SOAPComm object and a Display Game Object like so :
MainCamera
- mainScript (acts as a init object and activates the other object. Also is the link between all objects for reference.)
SoapComm - soapScript (communicates to the server)
Display - displayScript (updates the label)
Workflow :
- mainScript starts. Enables the Displayer which shows the Label with the default value of “Connecting…”.
- mainScript enables the SoapComm => soapScript.
- mainScript after SoapComm Init, tells SoapComm to login.
- After Login succesfull SoapComm start downloading data for 20 object.
(While the Soap function is being called 20 times - 1 for each of the objects to download data for, I want the label to state “Downloading Object 1” then 2,3,4 and so on )
What happens is that the App starts, freezes for a bit, then the label displays “Downloading Object 20” and at that point all SOAP operations are done.
How can I have the label change while the process is running ? What am I doing wrong ?