Hi, I’m currently following along in the video for lesson 30. I’m at the point where I’m creating the “public Text text” variable, and I noticed that the variable type “Text” wasn’t changing color, as indicated it would in the video, even after typing “using UnityEngine.UI” in the preamble at the top of the code (yes, I included the semicolons). I decided to run debugging. Namespace UnityEngine.UI Classes AnimationTriggers. Structure that stores the state of an animation transition on a Selectable. It is necessary to use this interface in the whole class so MenuOption and Editor can work using ObjectFactory and default Presets.
Unity is a 2D/3D engine and framework that gives you a system for designing game or app scenes for 2D, 2.5D and 3D. I say games and apps because I’ve seen not just games, but training simulators, first-responder applications, and other business-focused applications developed with Unity that need to interact with 2D/3D space.
Example
Microfiber paint brush. Unity networking provides the High Level API (HLA) to handle network communications abstracting from low level implementations.
In this example we will see how to create a Server that can communicate with one or multiple clients.
The HLA allows us to easily serialize a class and send objects of this class over the network.
The Class we are using to serialize
Using Unityengine.ui
This class have to inherance from MessageBase, in this example we will just send a string inside this class.
Creating a Server
![Unityengine Unityengine](/uploads/1/1/0/1/110140629/370412911.jpg)
We create a server that listen to the port 9999, allows a maximum of 10 connections, and read objects from the network of our custom class.
The HLA associates different types of message to an id. There are default messages type defined in the MsgType class from Unity Networking. For example the connect type have id 32 and it is called in the server when a client connects to it, or in the client when it connects to a server. You can register handlers to manage the different types of message.
When you are sending a custom class, like our case, we define a handlers with a new id associated to the class we are sending over the network.
Unity Using Namespace
The Client
Now we create a Client