SoundGuy2
SoundGuy2
NNormal
Created by SoundGuy2 on 2/6/2025 in #🤝ask-a-question
Problem syncing objects after instanciating.
yeah but that's the problem - the VR head is synced between clients but i can't seen to be able to set the new spanwed object to be under the VR head as aparent. i'll try to think of a workdaround...
13 replies
NNormal
Created by SoundGuy2 on 2/6/2025 in #🤝ask-a-question
Problem syncing objects after instanciating.
how do i sync a realtime transform world coordicates instead of local ones?
13 replies
NNormal
Created by SoundGuy2 on 2/6/2025 in #🤝ask-a-question
Problem syncing objects after instanciating.
is there no way to reparent realtime objects?
13 replies
NNormal
Created by SoundGuy2 on 2/6/2025 in #🤝ask-a-question
Problem syncing objects after instanciating.
This is my code: // local is a bool that determines if the object is local or a child of the VR player // Instantiate the CubePlayer for this client once we've successfully connected to the room. Position it 1 meter in the air. var options = new Realtime.InstantiateOptions { ownedByClient = local, // Make sure the RealtimeView on this prefab is owned by this client. preventOwnershipTakeover = local, // Prevent other clients from calling RequestOwnership() on the root RealtimeView. useInstance = _realtimeUserInstance // Use the instance of Realtime that fired the didConnectToRoom event. }; GameObject go = Realtime.Instantiate(PrimitivePrefab.name, options); RealtimeTransform rtTransform = go.GetComponent<RealtimeTransform>(); if (rtTransform == null) { Debug.LogError("No RealtimeTransform in Primitive Spawner"); } if (local) { go.transform.parent = this.transform; } else { _vrHead ??= FindFirstObjectByType<VRHead>(); if (_vrHead) { go.transform.parent = _vrHead.transform; } else { Debug.LogError("Missing VRHead to spawn attached primitive"); } }
go.GameObject().transform.localPosition = pos; go.GameObject().transform.localRotation = rot;
13 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Normcore Assistant this is also not good. the event being only received in the remote client every once in a while . is it possible that the trigger changs to 0 in the local client before sendingg the button number ?
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Normcore Assistant the code above is faulty. I'm getting an endless calls to the EventDidFire function after pressing the button once
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Video Stream?
@kapa.ai not Audiosteam, Video stream
9 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Normcore Assistant what about that .g file that is being auto regerated?
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Normcore Assistant what about that .g file that is being auto regerated?
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Normcore Assistant can the realtimeModel and component in the last example can be in the same Cs file or do i need to put the model in a separate cs file like in the other examples
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
ok thanks @Normcore Assistant
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Normcore Assistant does you last example use RPC or not?
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Tom why isn't this code nice like in the tickets you opened?
45 replies
NNormal
Created by SoundGuy2 on 3/7/2024 in #🤝ask-a-question
Button press on one client
@Normcore Assistant can you give me the following core - I am pressing a button with an int number in one client a function is called in another client with that number in the other clients
45 replies