Text Chat System
Hiya! I was just wondering if there is any documentation at all about how to make a text chat system in NormCore using custom models?
int, , string, etc.) that can be easily serialized and transmitted to other clients. For a TextMeshPro object, you might create a RealtimeModel that includes a string property for the text content and other properties for any other attributes you want to sync (like color, font size, etc.).Realtime.Instantiate(). If you're passing a prefab reference instead of a prefab string, then you're using the wrong one. Make sure to call . Also, ensure that the model setter has been correctly implemented. Source (https://normcore.io/documentation/realtime/common-questions#why-would-a-realtimecomponents-model-remain-null)Start() is called on any script on the prefab. Awake() must be called by Unity before Normcore can initialize any components on the game object. If you’re dealing with a RealtimeView that exists in a scene file, you’ll need to wait until realtime.connected == true, or the didConnectToRoom event has fired. Source (https://normcore.io/documentation/realtime/common-questions#why-do-i-get-the-error-this-view-doesnt-have-a-model-yet-wait-until-the-model-is-present-before-interacting-with-the-ownership-when-interacting-with-realtimeview)

_messageText_senderID_text_text_color_colorfloatInstantiate()GameObject.Instantiate()Realtime.Instantiate(prefabName)[RealtimeModel]
public partial class ChatMessageModel {
[RealtimeProperty(1, true)] private string _messageText;
[RealtimeProperty(2, true)] private string _senderID;
} [RealtimeModel]
public partial class TextMeshProModel {
[RealtimeProperty(1, true)] private string _text;
[RealtimeProperty(2, true)] private Color _color;
// Add more properties as needed...
}[RealtimeModel]
public partial class TextMeshProModel {
[RealtimeProperty(1, true)] private string _text;
[RealtimeProperty(2, true)] private Color _color;
// Add more properties as needed...
}