This repository contains the UE project that demonstrates the features and how-tos of ChanneldUE.
本UE项目用于展示ChanneldUE插件的特性和使用方法。
To clone the repo with all submodules, use the following command:
通过以下命令克隆代码仓库,可以自动克隆所有子模块:
git clone --recurse-submodules https://github.com/channeldorg/channeld-ue-demos
- BenchmarkReplication: single server test map. Used for basic single server replication test and performance benchmark.
- Press
T
to create aBP_TestRepActor
- Press
R
to toggle the latest createdBP_TestRepActor
's movement and rotation - Press
C
to create a cube that can be pushed - Press
B
to trigger a multicast RPC on GameState - Press
N
to create an NPC that moves randomly - Use
Mouse Wheel
to zoom in/out the camera
- Press
- TestPhysics: physics replication test map.
- Have the same controls as BenchmarkReplication
- TestLandscape: movement replication on Landscape test map.
- Have the same controls as BenchmarkReplication
- TestAssetReplication: physics replication test map.
- Have the same controls as BenchmarkReplication
- Move onto the texts to trigger events
- TestMultiServer: multi server test map. Used for testing player switching and replication between offline level (TestMultiServer_SinglePlayer) and multiple online levels.
- Press
Enter
to display the available online levels - Press
1-3
to enter the corresponding online level. If already in the coresspoding online levels, press again to return to offline level.
- Press
- TestSpatial_MxN: maps for testing MxN spatial channels.
- Based on
BenchmarkReplication
, the following controls are added: - Press
I
to toggle between default third-person AOI and full map AOI. - Press
L
to lock/unlock the pawn's spatial channel handover. - After pressing
Space
to jump, the GameState's Jumps property will be modified and synchronized to all spatial servers.
- Based on
- ClientOnlyChatDemo: chat room demo in client-only mode.
- ServerAuthChatDemo: chat room demo in server-authoritative mode.
- BenchmarkReplication: 单服测试场景。用于基本的单服同步测试和性能基准测试。
- 按
T
键创建一个BP_TestRepActor
- 按
R
键开启/停止最近一次创建的BP_TestRepActor
的位移和旋转 - 按
C
键创建一个可以被推动的立方体 - 按
B
键触发GameState的多播RPC - 按
N
键创建一个随机移动的NPC 鼠标滚轮
拉远拉近摄像机
- 按
- TestMultiServer:多房间测试场景。用于测试玩家在离线的房间(TestMultiServer_SinglePlayer)和多个在线房间之间切换和同步。
- 按
回车
键显示当前可以进入的房间列表 - 按
1-3
键进入对应的房间。如果已经在对应的房间中,则退回到离线房间
- 按
- TestPhysics:测试物理同步
- 操作同BenchmarkReplication
- TestLandscape: 测试在Landscape上的移动同步
- 操作同BenchmarkReplication
- TestAssetReplication:测试资产同步
- 操作同BenchmarkReplication
- 移动到对应的文字上触发事件
- TestSpatial_MxN:测试MxN空间频道。在
BenchmarkReplication
场景的基础上,增加了以下操作:- 按
I
键切换默认第三人称兴趣范围和全地图兴趣范围 - 按
L
键锁定/解锁玩家角色的空间频道迁移 - 按
空格
键角色跳跃后,会修改主服务器GameState的Jumps属性,并同步到各个空间服务器
- 按
- ClientOnlyChatDemo:无服务器模式的聊天室示例
- ServerAuthChatDemo:服务器授权模式的聊天室示例