Ryan Green | MONA
Ryan Green | MONA
NNormal
Created by Ryan Green | MONA on 7/9/2024 in #🤝ask-a-question
Is there a way to change ownership automatically when remote rigidbody is owned by another client?
I want ownership to change when an rigidbody owned by client a hits a rigidbody owned by client b. The object rigidbody by client b is automatically moving, not asleep. What is the best way to approach this?
11 replies
NNormal
Created by Ryan Green | MONA on 6/1/2024 in #🤝ask-a-question
'Networking.NetworkSpawnerModel' is missing the class attribute
I'm receiving the following exception after compile: 'Networking.NetworkSpawnerModel' is missing the class attribute 'ExtensionOfNativeClass'!
[RealtimeModel]
public partial class NetworkSpawnerModel
{
[RealtimeProperty(1, true, true)]
private bool _active;
}

public class NetworkSpawner : RealtimeComponent<NetworkSpawnerModel>

...
[RealtimeModel]
public partial class NetworkSpawnerModel
{
[RealtimeProperty(1, true, true)]
private bool _active;
}

public class NetworkSpawner : RealtimeComponent<NetworkSpawnerModel>

...
is there a way to get rid of this error?
7 replies
NNormal
Created by Ryan Green | MONA on 6/1/2024 in #🤝ask-a-question
RealtimeDictionary events
if a RealtimeDictionary is set directly, will the modelReplaced event fire? For example:
model.floats[(uint)key].value = value;
model.floats[(uint)key].value = value;
will the model.floats model dispatch an event?
4 replies
NNormal
Created by Ryan Green | MONA on 6/1/2024 in #🤝ask-a-question
RealtimeComponent connected
how do I know when a RealtimeComponent is initialized and connected to the network?
5 replies
NNormal
Created by Ryan Green | MONA on 6/1/2024 in #🤝ask-a-question
are all properties on a model updated at the same time?
if I update multiple properties on a model at the same time on the same frame, will they sync to clients at the same time? for example:
[RealtimeModel]
public partial class MonaBodyNetworkIdentifierModel
{
[RealtimeProperty(1, true, true)]
private string _localId;

[RealtimeProperty(2, true, true)]
private string _prefabId;

[RealtimeProperty(3, true, true)]
private bool _locallyOwnedMonaBody;
}
[RealtimeModel]
public partial class MonaBodyNetworkIdentifierModel
{
[RealtimeProperty(1, true, true)]
private string _localId;

[RealtimeProperty(2, true, true)]
private string _prefabId;

[RealtimeProperty(3, true, true)]
private bool _locallyOwnedMonaBody;
}
if I update local, prefab, and locallyOwnedMonaBody at the same time, will all of these properties arrive on a client at the same time?
7 replies
NNormal
Created by Ryan Green | MONA on 6/1/2024 in #🤝ask-a-question
is it possible to detect when another client joins?
are all clients notified when a user joins a room?
4 replies
NNormal
Created by Ryan Green | MONA on 6/1/2024 in #🤝ask-a-question
Asset Packages/com.normalvr.normcore/Normal.Realtime.Profiler has no meta file
How do I get rid of this exception in editor? "Asset Packages/com.normalvr.normcore/Normal.Realtime.Profiler has no meta file, but it's in an immutable folder. The asset will be ignored."
14 replies
NNormal
Created by Ryan Green | MONA on 6/1/2024 in #🤝ask-a-question
scene object
if i have a sceneobject with a model (not instantiated, but included in the scene) is there a way to claim ownership of it? is the model synced by default? is it controllable?
6 replies