Hippolicious || CardaStacks
Hippolicious || CardaStacks
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
OMG YES! You genius!!!!
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
Ok I will give it a try. Thanks for helping out! ❤️
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
Oh I think it was mandatory
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
it shows up briefly for one frame... it is not blank.. it is there.. just not visible... you can also see it briefly when changing screen size in the editor... when you drag it.. is shows up flickering.. so it seems like it just updates once and does not persist.
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
Sorry trying to get it to show up as code
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using Normal.Realtime; public class GlobalChatSync : RealtimeComponent<GlobalChatSyncModel> { private TMPro.TMP_Text chatText; private string _text;

private void Awake() { chatText = GetComponent<TMPro.TMP_Text>(); } protected override void OnRealtimeModelReplaced(GlobalChatSyncModel previousModel, GlobalChatSyncModel currentModel) { if (previousModel != null) { // Unregister from events previousModel.textDidChange -= TextDidChange; } if (currentModel != null) {
if (currentModel.isFreshModel) currentModel.text = chatText.text;
UpdateChatText();
currentModel.textDidChange += TextDidChange; } } private void TextDidChange(GlobalChatSyncModel model, string text) {
UpdateChatText(); } private void UpdateChatText() {


chatText.text = model.text; } public void SetText(string text) {
model.text = text; } }
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
globalchatsync is doing the syncing
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
I mean the text within the object
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
I could, but I still need a realtime view on that textbox to get it synced right? And right now if I add that to the textObject , the textObject does not show up (or only briefly 1 frame)
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
@Mechabit
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
No description
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
No description
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
will do.. just a sec
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
So I rewrote my code so I don't need to instantiate the TextMeshPro objects I just change the text within. When I don't have the Realtime Transform and View components added to the TextMeshPro objects it works.. when I add these components the text changes but is not visible on sceen.. I also made a custom model but that did not change a thing.
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
Ok so according to kapa it should be working with a model, but I still have the text disappearing on me. Anyone has an idea how to fix it?
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
Alright so it sounds like the model should solve all my problems.. let's give it a try
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
@Normcore Assistant Follow up question. When I instantiated a TextMeshPro object with Realtime View component attached to it. The text disappears. Any idea why?
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
@Normcore Assistant Ah right so I can Instantiate the text mesh pro objects at runtime but to have them synchronised across the network I need to use a custom model as well?
45 replies
NNormal
Created by Hippolicious || CardaStacks on 3/25/2024 in #🤝ask-a-question
Text Chat System
@Normcore Assistant As it is not possible to instantiate objects as a child to a parent object in Normcore. How would you instantiate a TextMeshPro object?
45 replies