Puzzle #3 — Color Match Sockets — XR Multiplayer Template
في الحلقة دي هنعمل اللغز التالت في غرفة الهروب: مقابس الألوان.
الفكرة إن فيه ٣ قطع مختلفة لازم تتحط في السوكيتس اللي ليها نفس اللون. لما كل حاجة تتحط صح، اللغز يتفتح.
اللي هنتعلمه:
إزاي نستخدم XR Sockets في Multiplayer.
إزاي نخلي السوكيت يقبل بس القطعة الصح (color match).
إزاي نتابع الحالة (متوصل / مش متوصل) باستخدام NetworkVariables.
إزاي السيرفر يبقى هو الـ Authority ويأكد صحة اللغز.
إزاي Late Join يدخل ويلقى القطع كلها متسجلة في مكانها.
⚠ ️ ملاحظة: الكورس موجه للي عنده خبرة مع XR Interaction Toolkit. مش هنشرح الأساسيات.
🇬🇧 English
In this episode we build the third puzzle of the escape room: Color Match Sockets.
The idea is simple: 3 objects must be placed into sockets with matching colors. When everything is placed correctly, the puzzle unlocks.
What you’ll learn:
How to use XR Sockets in a multiplayer setup.
How to restrict sockets to accept only the correct object (color matching).
Tracking state (occupied / not occupied) with NetworkVariables.
Keeping the server authoritative to validate puzzle success.
Ensuring late joiners see all sockets and objects correctly.
⚠ ️ Note: This tutorial assumes experience with XR Interaction Toolkit. XR basics are not covered.
Contact me https://www.linkedin.com/in/ahmed-abdailla/a
ahmed.mousa.aed@gmail.com