SAMPLE_README

Sample Project for Diarkis Unity Plugin

Execution Instructions

  1. Unzip diarkis-field-sample.zip and open it with Unity2021.3.6f1.

  2. Open the Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Title scene and play it as is.

Contents of the Sample

  • Demo related to Diarkis Field.

How to Operate in the DiarkisSample_1_Title Scene

Setting ItemRoleInput Example

HttpHost

EndPoint URL

asia-northeast1.diarkis.io/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (http:// is unnecessary) / 192.168.XXX.XXX:7000

ClientKey

Client Key

XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (can be empty)

How to Operate in the DiarkisSample_2_SelectFeature Scene

ButtonFunction

Field

Sample page for Field functionality

How to Operate in the Field Scene

You can check position synchronization using the Field functionality. Depending on the number of Pods (number of UDP / TCP servers) used, the Field is divided into Grids. By default, one UDP server is started in 1Pod, so 1 Map is divided into 4 Grids. When moving across Grids, position information will not be sent between characters in different Grids, rendering them invisible. The Grid properties are defined on the server side, and you can match the server settings using the "Server Count" and "Grid Size" sliders.

How to Operate in the MainGame Scene

In the MainGame scene, you can control your character and view other players.

Character Operation Instructions

ActionKey

Move Forward

w key

Move Backward

s key

Move Right

d key

Move Left

a key

Camera Move

Right mouse button + Pointer

Jump

Space key

Run

Left shift key

Other Operations

  1. Your UID

  2. The visible radius distance of other players from the player

  3. Number of connected UDP servers (affects the number of Grids)

  4. Slider to change the size of Grids

  5. Exit the room

How to Operate in the MainGame Scene

If specifying Host and Client Key at each startup is tedious, change the following in the Unity Editor.

  1. Select Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Title.

  2. Select Hierarchy > DiarkisNetworkManager.

  3. Specify in Inspector > Transport> HttpHost and Client Key.

Additional Settings

  1. Select Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Title.

  2. Open Hierarchy > DiarkisNetworkManager > Inspector.

  • Change the server to connect to (communication protocol)

    • Select the server in Server Type with UDP / TCP.

    • Selecting TCP uses the TCP protocol for communication.

    • Selecting UDP uses the UDP protocol for communication.

  • Output log files

    • If Output Log File is checked, a log file (XXXXX(UID).txt) will be output.

      • When executed in UnityEditor, it is output to the DiarkisPluginSample/DebugLogs folder.

    • Use this for debugging purposes.

  • Display FPS

    • Checking Show FPS will display FPS on the runtime screen.

Standalone Build Output

Windows / Mac Package Build

  1. In DiarkisNetworkManager > Inspector > Server Type, select UDP or TCP.

  2. Select File > Build Setting > Platform > PC, Mac & Linux Standalone and press Switch Platform. If it is already selected, this operation is unnecessary.

  3. Press the Build button to build.

  4. You can confirm the operation by launching the app from DiarkisWalkerSample.exe in the created folder.

  • Verified operation environment for UnityEditor: Windows10 / Mac.

  • Unity2021.03.6f1

Last updated