x


Chat Client in Unity

Hi,

In a chat client like msn or skype we can add emoticons which are inline images in the text. Can we have such a functionality using Unity GUI classes ? If not how do we attain it using lower level APIs ?

Regards

more ▼

asked Jan 13, 2012 at 08:22 PM

Orochi663 gravatar image

Orochi663
31 8 8 9

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I assume you've seen the chat systems available in the Asset store (a good place to start). A quick and dirty way would be to embed them in the font texture, then detect and convert the text emoticon like ;) to the character code for that symbol in the font texture. To get fancier, like animated ones, you could either have multiple such characters that you cycle through, or get down-and-dirty with the API to use DrawGUITexture where needed. For that you would need precise font metrics. See GUIStyle.CalcSize and related functions.

more ▼

answered Jan 14, 2012 at 01:30 AM

DaveA gravatar image

DaveA
33.3k 416 335 442

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5644
x865
x555
x83

asked: Jan 13, 2012 at 08:22 PM

Seen: 1532 times

Last Updated: Jan 14, 2012 at 01:30 AM