Sync movement and animation with CMF + MLAPI + SNS in Unity
Автор: Hexdue
Загружено: 29 окт. 2019 г.
Просмотров: 1 482 просмотра
Tutorial:
install the following assets/libraries:
Character Movement Fundamentals (CMF)
MidLevel API (MLAPI)
Simple Network Sync (SNS)
create a prefab variant of one of the CMF character prefabs
open the prefab and add the following components to the top level:
Networked Object (from MLAPI)
Simple Sync Transform (only check Position XYZ in Transform Crusher)
custom script that disables input/physics/animation/camera on non-local player objects (rather than having to modify any of the third-party asset/library code with network logic): https://gist.github.com/Youdaman/382c...
add another Simple Sync Transform to the ModelRoot child object (only check Y/Yaw of Euler section in Transform Crusher)
add a Simple Sync Animator to the CapGuy_Model child object (uncheck Use Global Settings under Sync Parameters, expand Adv. Parameter Settings and uncheck FootStep parameter)
create an empty game object in the scene and add a Networking Manager component, add the prefab variant to its Networked Prefabs list and check Default Player Prefab
add the following custom script to this game object to allow you to start a Host/Client: https://gist.github.com/Youdaman/d659...
press play and then click the right mouse button to start a host (or click the Start Host button in the Networking Manager component panel in the editor) and in another instance of the game (either via Build and Run or another editor using a cloning plugin like uEcho) click the left mouse button to connect to the host
enjoy the synchronised movement and animation :D
Follow me on
Twitch / youdamanftw
Mixer https://mixer.com/YoudamanFTW
YouTube / stewheckenberg
Twitter / stewheckenberg

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: