- Home /
Photon MMO chat
I'm using a pre-made PUN example to create my project and within the project contains a default script called InRoomChat.cs
When the project runs the script the following outcome takes place:
I have a pretty good undersanding of how queues and stacks work, but i'm unsure how this script results in the screenshot's outcome. GUILayout.BeginArea(this.GuiRect);
scrollPos = GUILayout.BeginScrollView(scrollPos);
GUILayout.FlexibleSpace();
for (int i = messages.Count - 1; i >= 0; i--)
{
GUILayout.Label(messages[i]);
}
GUILayout.EndScrollView();
The goal is an MMO style chat where 1 is shown at the bottom, 2 pushes one to last from bottom while 2 fills the bottom slot and three would repeat 2's process.
pun7question2.jpg
(8.3 kB)
Comment
Your answer
Follow this Question
Related Questions
Enter For Chat 1 Answer
Having photon and node JS in Unity 0 Answers
Photon chat Filter 1 Answer
Chat GUI - Change Chat order? 1 Answer
Problems with Photon Chat 0 Answers