Get ready with VLC.package - Capi-Metaverse/Template GitHub Wiki
Donwload VLC.package and create a project to then add the package, follow the steps:
- Crear repositorio en Github
- Clonar repositorio
- Crear proyecto de Unity, con template URP, en la carpeta del repositorio
- Meter paquetes GLTFUtility, localization, TMP: https://github.com/Siccity/GLTFUtility.git , com.unity.localization , com.unity.textmeshpro
To install any package we go to window -> Package Manager
Inside of Package Manager we go to UnityRegistry and we can either add from a git url on the upper left corner or we can search for a known package on the upper right corner:
-
Drag the VLC.package to the Assets folder and import the package
-
Añadir layers y tags necesarias: Interact e interactive en todos los objetos intereactables como las puertas
To add the Hoteling, just import the hoteling.prefab and adapt the logic if needed.
HotelingCanvas is formed by 96 buttons, each one corresponding to one seat in the office. Seats have numbers from 0 to 95
Chairs are stored in a list of gameobjects, each one of those gamobjects is a 3D Chair inside the virtual representation of Valencia Office. You as a player can interact with the chair also without clicking the hoteling map just pressing E when near a chair.
[Header("ChairList")] [SerializeField] private List _seatList;
//Sit Character GameObject seatGameObject = _seatList[_seatNumberSelected]; seatGameObject.GetComponent().SitCharacter(FindObjectOfType().gameObject);