migrating from photon

i call RealtimeView.RequestOwnership() and it just doesnt happen. doesnt give me any errors or anything
20 Replies
kapa.ai
kapa.aiβ€’2mo ago
Hi @ev. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- A few common Normcore gotchas can make RequestOwnership feel like it β€œdoes nothing.” Here’s a focused checklist to help you debug: 1) Make sure the view actually has a model yet
- For scene RealtimeViews, they register in Start(). If you call RequestOwnership() too early, you’ll hit the β€œno model yet” case and ownership won’t change. Wait until realtime.connected == true or after didConnectToRoom, or call from Start/after Start rather than Awake. [RealtimeView FAQ] 2) Check parent ownership and preventOwnershipTakeover
- The server will reject a takeover if a parent RealtimeView is owned by someone else, or if preventOwnershipTakeover is true anywhere in the hierarchy. In those cases, requests are optimistically applied client-side and then rolled back silently if the server denies them. [RealtimeTransform; Prevent takeover; Requesting ownership of a RealtimeView] 3) Verify you’re requesting ownership on the right component
- For movement, ownership needs to be on the RealtimeTransform (not just the RealtimeView). If the view is owned by someone else, RealtimeTransform RequestOwnership() can still be rejected due to hierarchy ownership. If you want collision-based handoff, ensure the RealtimeView remains unowned. [RealtimeTransform; RealtimeTransform FAQ] 4) If it’s a custom RealtimeComponent/RealtimeModel
- Ownership only works if the model was compiled with a meta-model. Add [RealtimeModel(createMetaModel: true)] to your model attribute; otherwise ownership calls won’t affect anything. [Requesting ownership of any…; RealtimeModel methods] 5) Timing on prefabs vs scene objects
- Prefab views are ready by Start on the prefab instance. Scene views might not be ready until after they register with Realtime; wait for the room to connect or use didConnectToRoom before interacting with ownership. [RealtimeView FAQ] 6) How to quickly validate at runtime
- Use the RealtimeView inspector buttons (Request Ownership / Clear Ownership) in Play mode to see if the request sticks. If it doesn’t, it’s likely being denied due to hierarchy ownership or preventOwnershipTakeover. [Requesting ownership of a RealtimeView; RealtimeView editor] Practical steps: - Ensure you call RequestOwnership() after the view is registered (e.g., after didConnectToRoom). - Check realtimeView.isOwnedLocallyInHierarchy and preventOwnershipTakeover in the inspector at runtime. - If you only need to move an object, call realtimeTransform.RequestOwnership() and leave the parent RealtimeView unowned. [RealtimeTransform; RealtimeTransform FAQ] If you share a snippet showing where you call RequestOwnership() (Awake/Start/after connect) and whether this is a scene object or a prefab, I can help pinpoint which of the above is the culprit. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.aiβ€’2mo ago
<@419782903405215744> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
ev-il 😈😈😈😈😈😈😈
also any object with a realtime transform is just frozen and it doesnt have any physics. i think its because nobody owns it in the room but i cant really own it anyway
maxweisel
maxweiselβ€’2mo ago
You need to request ownership of the RealtimeTransform and make sure Maintain Ownership While Sleeping is true if the body is at rest
ev-il 😈😈😈😈😈😈😈
alright ill try that, thanks
maxweisel
maxweiselβ€’2mo ago
sure thing!
maxweisel
maxweiselβ€’2mo ago
great! glad to hear it πŸ™‚ let us know if you have any other questions
ev-il 😈😈😈😈😈😈😈
does rv.isOwnedLocalySelf mean like you have authority over the view cus ive been messing around with it and for me its quite the opposite nvm i got it to work is there anything for syncing animators? like how mirror has network animator and photon has an animator view @Normcore Assistant do you work
kapa.ai
kapa.aiβ€’2mo ago
Let me check the knowledge base for you again. One moment! :books:
kapa.ai
kapa.aiβ€’2mo ago
---------------------- I’m here to help with questions about NormalVR (Normcore). If you have a Normcore questionβ€”like ownership, RealtimeTransform, or player controller setupβ€”ask away and I’ll dive in. If your question isn’t about NormalVR, I’m not able to answer it. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.aiβ€’2mo ago
<@419782903405215744> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
ev-il 😈😈😈😈😈😈😈
can you read images and if so what this mean
No description
ev-il 😈😈😈😈😈😈😈
@Normcore Assistant can you read images and if so what does this mean blah blah bleh bleh blublublub
No description
kapa.ai
kapa.aiβ€’2mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- I’m tuned to answer questions about NormalVR (Normcore). I can’t interpret arbitrary images or non-Normcore content. If you have a Normcore-related image (e.g., a screenshot of a Unity inspector or error) and describe what you’re seeing, I can help interpret it using the docs. Otherwise, feel free to ask a Normcore questionβ€”getting started, avatars/voice, ownership, or scaling roomsβ€”and I’ll cite the relevant guides. [Getting Started; Ownership flags] ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.aiβ€’2mo ago
<@419782903405215744> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
maxweisel
maxweiselβ€’2mo ago
did you destroy the RealtimeTransform or Rigidbody component at runtime? that's what this looks like
ev-il 😈😈😈😈😈😈😈
mb i didnt check here i fixed a lot of stuff but im getting an error upon spawning the network player prefab Failed to set model on component (3:NetRig(Clone) (NetRig)). idk what i did wrong ill do some more troubleshootin
maxweisel
maxweiselβ€’2mo ago
there should be another error next to that one that explains what’s wrong

Did you find this page helpful?