ReeseR
ReeseR
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
Hmm... When I get a chance I'll play around with the model added event and see what happens. Might be a while, but I'll let you know how it goes.
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
Yeah, unfortunately mine isn't turn-based. The data syncs just fine, but I need to trigger an event on data sync that updates the scoreboard text. Still not sure there's a way to do that with realtime dictionaries. So, instead I have a component on every text object that checks a player's score every single frame and updates the text.
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
😮‍💨 Except, unless I did something wrong, "HandleModelReplaced" doesn't call within nested dictionaries... Ok, fine. I've added a component to each cell that checks its data on the model every single frame. I really don't like this solution. If someone knows a better way let me know.
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
@Normcore Assistant I'm making a table of scores using nested Realtime Dictionaries. Due to the way the table is currently set up, I do not want to add a Sync component to every cell. Since there is no "OnValueChanged" event for dictionaries, how can I change the text on any cell without looping through the whole table every frame?
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
Sigh... Ok. Lets try a full context sentence...
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
@Normcore Assistant When you say "Update you table locally" do you mean update every frame? Because checking every cell on a table every single frame sounds like it takes a lot of performance. Is there a better way to do it?
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
@Normcore Assistant I'm trying to auto-generate a table of scores. Currently, it doesn't work with RealtimeInstantiate. When making this table of scores, does every cell need a realtime sync component on it? Or is there a way to do it with only a sync on the parent object?
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
No description
28 replies
NNormal
Created by ReeseR on 8/28/2024 in #🤝ask-a-question
Best way to sync data on a table?
RealtimeArray's can't be integers, only models? At least from what I'm reading in the docs: "RealtimeArray is a special model type that holds a sequential list of models that can be modified at runtime."
28 replies
NNormal
Created by ReeseR on 8/7/2024 in #🤝ask-a-question
How to get localAvatar clientID on connect
@Normcore Assistant Doesn't the RealtimeAvatarManager.avatarCreated code run every time an avatar is created? Or does it run only when the local avatar is created?
10 replies