Anthony
Anthony
NNormal
Created by Camobiwon on 12/3/2024 in #🤝ask-a-question
Best way for syncing data "generically" in Normcore?
Granted, what I'm doing probably isn't terribly common.. I've got a framework that hides all 3rd party network code/libs behind an abstraction layer so it can be removed or changed at any time
15 replies
NNormal
Created by Camobiwon on 12/3/2024 in #🤝ask-a-question
Best way for syncing data "generically" in Normcore?
Gotcha, makes sense! In my particular case, I have a ton of key/value sets of all different data types where their handler classes all have the same code, so I'd ideally want to do something like:
public class ValueSetHandler<T> : RealtimeComponent<ValueDictionaryModel<T>>
{
/// etc..
}

[RealtimeModel]
public partial class ValueDictionaryModel<T>
{
[RealtimeProperty(1, true, true)]
private StringKeyDictionary<ValueModel<T>> _dictionary;
}

[RealtimeModel]
public partial class ValueModel<T>
{
[RealtimeProperty(1, true, true)]
private T _value;
}
public class ValueSetHandler<T> : RealtimeComponent<ValueDictionaryModel<T>>
{
/// etc..
}

[RealtimeModel]
public partial class ValueDictionaryModel<T>
{
[RealtimeProperty(1, true, true)]
private StringKeyDictionary<ValueModel<T>> _dictionary;
}

[RealtimeModel]
public partial class ValueModel<T>
{
[RealtimeProperty(1, true, true)]
private T _value;
}
15 replies
NNormal
Created by Camobiwon on 12/3/2024 in #🤝ask-a-question
Best way for syncing data "generically" in Normcore?
No description
15 replies
NNormal
Created by Ryan Green on 6/1/2024 in #🤝ask-a-question
Asset Packages/com.normalvr.normcore/Normal.Realtime.Profiler has no meta file
I've got the same error this morning after upgrading Normcore, but in my case it causes builds to fail.. I had to roll back to 2.9.5 (2022.3.29)
14 replies