User avatar
sfernandez
Site Admin
Topic Author
Posts: 2983
Joined: 22 Dec 2011, 19:20

Chat control

05 Aug 2014, 14:51

Here I present a simple Chat control that can be expanded to fit in a real game. It uses MVVM to feed the UI with the data and to process the messages sent by the user.

Hope you like it. I developed this in a few hours, so don't expect a very complex and polished control ;)
ChatDemo.png
ChatDemo.png (29.26 KiB) Viewed 5848 times
Find attached the Blend project which contains the Unity project inside. You will need to import NoesisGUI 1.1.10 Unity package to make it work.
Attachments
ChatDemo.zip
(43.39 KiB) Downloaded 516 times
 
movra
Posts: 70
Joined: 02 Apr 2014, 20:35

Re: Chat control

05 Aug 2014, 20:47

Some notes:

- You need NoesisGUI version 1.1.10, which is not yet available on the Unity3D Asset Store. It can be downloaded from the forum: viewtopic.php?f=3&t=91 If you use an earlier version you will get an error about a command.

- In my case the links to the assets were broken. In the ChatDemo scene you need to add ChatDemoWindow.xaml to the Noesis GUIPanel on the camera. The missing script below it is ChatDemo.cs.
 
User avatar
sfernandez
Site Admin
Topic Author
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Chat control

06 Aug 2014, 00:01

I think the links get broken when the Unity project is opened without NoesisGUI package imported. Maybe I could have uploaded it with a NoesisGUI Trial package to avoid this problem :(
 
User avatar
sfernandez
Site Admin
Topic Author
Posts: 2983
Joined: 22 Dec 2011, 19:20

Re: Chat control

06 Aug 2014, 02:12

I have updated the zip including .meta files generated by Unity to avoid losing asset references.

When you open the project some errors are logged to the console because NoesisGUI 1.1.10 package is missing and scripts are not compiling. Just download it from our forums: viewtopic.php?f=3&t=91 and ChatDemo.unity scene will be ready to play.

Who is online

Users browsing this forum: No registered users and 17 guests