如何区分谁在光子聊天中发送的消息以外的其他用户名?
因此,我已经为多人游戏创建了一个聊天系统,它运行良好,但是我希望更改UI,以便播放器识别其他用户是否发送消息。我已经附上了参考图片。 白色背景应该是个人用户,而棕色则是其他客户。
但我没有得到如何做到这一点,任何帮助都会被欣赏..... 。
So I have created a chat system for Multiplayer and it is working fine but I want a change in my UI so that player recognizes that messages were sent by other user or not. I have attached a picture for ref.
White background should be personal user while brown be other clients.
But I am not getting how to do that , any help would be appreciated...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
photonview.ismine();
检查是否通过您想要的任何内容是您的消息或其他用户You can check if you sent the message by using
photonView.isMine();
with that you can change whatever you want based on is the message yours or another users