메타버스 허브
Available in the Industries Circle

개요
Hub 씬은 멀티플레이어 착륙 스페이스입니다.
주요 목적은 다른 스페이스(Art Gallery, PicaZoo, Music)에 대한 접근을 제공하는 것입니다.
이를 위해 씬에는 플레이어가 다른 스페이스로 순간 이동할 수 있는 포털이 포함되어 있습니다.
마찬가지로, 다른 씬들도 이 Hub로 돌아올 수 있는 포털이 있습니다.
또한 플레이어는 서로 가까이 있으면 대화할 수 있습니다.

Portals

SpaceLoader 활성화
각 포털에는 SpaceLoader
컴포넌트가 있습니다.
Awake()
중에는 SpaceDescription
스크립트 가능 개체 매개 변수를 사용하여 포털 텍스트 필드를 업데이트합니다.
플레이어가 포털 플랫폼에 입장하면 새로운 씬을 로드하기 위해 "Exit" 프로세스를 시작합니다.
C#
private void OnTriggerEnter(Collider other)
{
if (other.GetComponentInParent<HardwareHand>())
{
exitingTriggerCollider = other;
StartExiting();
}
}
StartExiting()
메소드는 예기치 않은 씬 로딩에 대한 보호 기능을 포함합니다.
그런 다음 SwitchScene()
으로 실제 씬 전환을 호출합니다.