참고: UNet은 지원이 중단되었으며 향후 Unity에서 삭제될 예정입니다. 현재 새로운 시스템이 개발 중입니다. 자세한 내용과 다음 단계는 이 블로그 포스트와 FAQ를 참조하십시오. |
네트워킹 기능 사용자는 아래와 같이 두 타입으로 나눌 수 있습니다.
Unity 네트워킹은 “고수준” 스크립팅 API를 제공합니다. 이는 HLAPI라고 부르며, 사용하게 되면 “로우 레벨” 구현 세부 사항에 대해 신경쓰지 않고도 멀티 유저 게임에 일반적으로 필요한 대부분의 요구 사항을 만족시킬 수 있는 커맨드에 접근할 수 있습니다. 아래는 HLAPI를 활용할 수 있는 방법입니다.
Unity 네트워킹은 엔진과 에디터에 통합되어 있으므로, 멀티플레이어 게임을 빌드할 수 있도록 컴포넌트와 시각적 툴을 사용하여 작업할 수 있습니다. 다음은 몇 가지 기능입니다.
Unity는 게임 제작과 릴리스 과정 전반을 지원할 수 있도록 인터넷 서비스를 제공합니다. 아래는 지원하는 기능의 예입니다.
Unity는 다음을 지원하는 실시간 전송 레이어를 제공합니다.
Unity’s networking implements simple built-in authentication features which provide basic support for validating sessions, but is not a robust authentication solution.
Robust authentication can be an important factor in developing a multiplayer project, as it helps to prevent malicious users from hijacking player sessions, impersonating other users, disconnecting legitimate players from games, or other malicious actions specific to your game or app.
Because Unity only provides simple built-in authentication, if you require robust protection against malicious actions in your game or app, you should use 3rd party authentication and encryption solutions, or implement them yourself using plugins such as this reference implementation and the NetworkTransport API.
Unity가 제공한 멀티플레이어 예제 프로젝트를 분석해서 이들 기능이 어떻게 사용되고 있는지 알 수 있습니다. 아래의 예제 프로젝트는 Unity 포럼 포스트에 있습니다.