SAMPLE_README
Sample Project for Diarkis Unity Plugin
Execution Instructions
Unzip
diarkis-field-sample.zip
and open it with Unity2021.3.6f1.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 Item | Role | Input 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
Button | Function |
---|---|
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
Action | Key |
---|---|
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
Your UID
The visible radius distance of other players from the player
Number of connected UDP servers (affects the number of Grids)
Slider to change the size of Grids
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.
Select
Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Title
.Select
Hierarchy
>DiarkisNetworkManager
.Specify in
Inspector
>Transport
>HttpHost
andClient Key
.
Additional Settings
Select
Assets/Diarkis/Sample/Scenes/DiarkisSample_1_Title
.Open
Hierarchy
>DiarkisNetworkManager
>Inspector
.
Change the server to connect to (communication protocol)
Select the server in
Server Type
withUDP
/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
In
DiarkisNetworkManager
>Inspector
>Server Type
, selectUDP
orTCP
.Select
File
>Build Setting
>Platform
>PC, Mac & Linux Standalone
and pressSwitch Platform
. If it is already selected, this operation is unnecessary.Press the
Build
button to build.You can confirm the operation by launching the app from DiarkisWalkerSample.exe in the created folder.
Recommended Execution Environment
Verified operation environment for UnityEditor: Windows10 / Mac.
Unity2021.03.6f1
最終更新