O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting XML data from the server

In this section, we will create the C# script that will parse the XML data from the server to use in the next step. We will create the C# script because it is much easier to use the XmlDocument from .Net framework in C#.

Prepare for Lift Off

Let's go to Assets | Create | C Sharp Script and name it XMLParser and put it inside the Standard Assets folder, as shown in the following screenshot:

Prepare for Lift Off

Before we begin to code the C#, we should know that the way to write the script in C# is different from Unity JavaScript (we can see more details in Appendix C, Major Differences Between C# and Unity JavaScript), which we already ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required