Normcore unique identification of Realtime instantiated prefab?
Does Normcore have a unique identification of a Realtime instantiated prefab?
3 Replies
Hi @Phạm Tuấn Anh. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
No, Normcore does not use a unique identifier (UUID) to identify a Realtime instantiated prefab. The RealtimeView component, which is used to identify a game object and its RealtimeComponents across multiple clients, does not use UUIDs to synchronize views internally.
However, RealtimeViews that exist in the scene sometimes have a Scene View UUID, which is used to synchronize that same view when the scene is loaded on multiple clients. But once connected, the scene view UUID is never used again.
If you need to introduce this functionality, you can create a RealtimeComponent that assigns a UUID in
OnRealtimeModelReplaced()
when getting a fresh model. This will ensure that the component has a unique UUID and that existing models don’t have their UUIDs reassigned by new clients.
For more information, you can refer to the RealtimeView documentation (https://normcore.io/documentation/realtime/realtimeview) and Common Questions (https://normcore.io/documentation/realtime/common-questions) on the Normcore website.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1120683104592465930> Kapa.ai is still learning and improving, please let me know how I did by reacting below.