#1 Simple UNITY Multiplayer with PHOTON FUSION ADVANCE KCC | Initial Project
Вставка
- Опубліковано 10 тра 2023
- This is a simple example of implementing Photon Fusion Network Mecanim Animator using the UNITY Starter Assets Third Person Controller for model and animation and Photon Advance KCC for controller. You can also use your own custom model later.
!Important
I recommend using Unity 2021 LTS atm because there is still a compatibility issue found for Fusion-KCC-Sample-1.1.5, released on Mar 07, 2023, with Unity 2022 version*.
Content:
=======================================
00:12 - What you will get.
00:40 - Get Photon Advance KCC.
03:15 - UNITY Starter Assets Third Person Controller.
04:11 - Sample Package.
04:54 - Setting-Up.
10:48 - Finalizing.
12:02 - Play Testing.
16:27 - Demo.
Resources:
=======================================
1. Get Photon Fusion Advanced KCC
=======================================
📥 Download: doc.photonengine.com/fusion/c...
a. Sign up if you don't have an account in PHOTON yet.
b. Extract fusion-kcc-sample-1.1.5.zip
c. Add Project from UNITY HUB.
d. Add/Create Photon Fusion App Id in PhotonAppSettings or via Fusion Hub.
2. UNITY Starter Asset 3rd Person.
=======================================
a. Add Asset: assetstore.unity.com/packages...
b. Import Starter Asset 3rd Person from package manager.
as we only used for models and animation, so check only ThirdPersonController/Character and import.
3. Sample Package.
=======================================
📥 Download: drive.google.com/drive/folder...
Import following custom package to project. with option:
A. Script Only Package
====================================
If you want to follow along step-by-step Video or StepToReproduce.txt.
Import: FusionKCCxStarterAssetThirdPerson_ScriptOnly.unitypackage
Size: 4Kb
B. Full Package
====================================
Contain all result, so you can move to next-step directly.
Import: FusionKCCxStarterAssetThirdPerson.unitypackage
Size: 1,1Mb
4. Check ReadMe.txt and StepToReproduce.txt for detailed step.
5. Multiplayer Test
Simply using parrelsync or any other project instancing to test multiplayer.
📥 parrelsync: github.com/VeriorPies/ParrelS...
📥 DualPlay: assetstore.unity.com/packages...
Note:
UNITY Starter Assets Third Person Controller package is licensed under the Unity Companion License. For full license terms, please see: unity3d.com/legal/licenses/Un...
====================================================
*Tested on 15/06/2023 15:30 GMT+7 with steps:
- Download Photon Fusion Advanced KCC from doc.photonengine.com/fusion/c...
- extracted zip file
- open in UNITY 2022.3.0f1
- Missing KCC class
#madewithunity #unity #multiplayer #photon #tutorial #gamedev
Thank you so much, you were great!
Hi, thanks much appreciated!
Thank you so much, this tutorial is so great.
You're very welcome! I'm delighted to hear that you found the tutorial helpful.
Great tutorial! Thanks for your efforts :)
Hi friend, thank you verry much it means alot :). n also motivates me. because this is my hobby and I enjoy doing it
thanks
much appreciated
Hi can two different devices from different networks appear in the scenes? In my case I was trying with a friend and we tried "Start Host" and Start client but the "Start Client" Connection is taking too long. am i missing something?
Could you please make a video with KCC v2 for Ready Player Me, it would be great if there was a chat system.
Very helpfull, you are the best, can you explain did you make readyplayer me with fusion BR, also is it possible that this project could be downloadable....?
thanks man, much appreciate. Yes for implementation of ReadyPlayerMe with BR200 I will share it too and of course it can be downloaded. currently still in the process of making the documentation. sometimes documenting what we have edited is more difficult than the editing itself hahaha
very helpful tutorial thank you so much!
but how can i connect it to photon cloud?
Hi, to connect, enter your Photon Cloud AppId in the Fusion-Fusion Hub-Fusion AppId menu. Make sure the red light has turned green. If not, you can click the 'Open the Photon Dashboard' button once again automatically, as shown in the video: ua-cam.com/video/cJzSUGjhca8/v-deo.htmlsi=yE_2v4mx7gQV6ej2&t=106
@@rualssyarif Thank you I really appreciate it
Assets\FusionKCCxSA\Scripts\SimpleAnimator.cs(9,13): error CS0246: The type or namespace name 'KCC' could not be found (are you missing a using directive or an assembly reference?)
how to fixt it?
hi thank, Can you tell me which version of Fusion you're using?
Hi! I wants to make offline multiplayer fps game using MFPS asset available on asset store. But i dont know how to remove photon networking from mfps.
Can you please make a tutorial on it?? Please
Hi, thank you for your comment. I'm not very familiar with MFPS as I don't have that asset. Also, as far as I know, in Photon, offline multiplayer means running Photon as a single player locally without connecting to a server with a single code. Is this what you are trying to achieve? If so, you can find more information about it here: forum.photonengine.com/discussion/19520/is-there-an-offline-mode-in-fusion
Bro can you do this for Fusion 2? They do not have Advanced KCC for Fusion 2
hi thanks, i plan to share it around next week for this, sorry for the delay
Hi bro can you make video for mobile input with this advance KCC sample.
Hey bro, afaik, the advanced KCC Sample already has built-in support for mobile controls. You can find more information about it here: doc.photonengine.com/fusion/current/technical-samples/fusion-kcc-sample#mobile_controls
The KCC download from Photon keeps telling me it's corrupt? Anybody else getting this?
OK, anybody else suffering with this - rename the file, replacing .zip with .unitypackage. Then import, no extraction needed 👍
Cool, I've never thought of renaming it into a unitypackage before. Thank you very much for your contribution.
Hi dude how to use invector third person assets for the fusion maybe you know.
Hi, it must be very challenging 😅, haven't tried it so far.
@@rualssyarif hmm oky thanks
@@ReinellS If I'm not mistaken, there is already a multiplayer asset for Invector in AssetStore
@@rualssyarif it is asset for mirror network. ah anyways now I don't need invector. :d thanks for help
hey, i only want start auto host or client option in this, also i don't want the ui appearing on the top. Can you please in removing them.
Hi, to achieve that, you'll need to create a custom start UI where you include a button that calls the StartAutoClient() in NetworkDebugStart when clicked, to switch the game mode to AutoStartHostorClient.
To hide the menu, you can locate the Menu game object in the hierarchy, which contains the menu component. Uncheck the "showMenu" option to hide the menu without removing its functionality, or disable the component to completely deactivate it. hope it help
@@rualssyarif thanks for your help
Exception: Found missing NetworkBehaviour reference in NetworkBehaviours[] list on [Id:None](Advanced Player (Third Person)(Clone)). Re-baking of object required. Please check prefab or scene object and make sure NetworkBehaviour list is up to date.
Fusion.NetworkObject.GetWordCount (Fusion.NetworkObject obj) (at Fusion/Fusion.Runtime/Object/NetworkObject.cs:333) current sample project from photon fusion Advance KCC has script missing in prefab. kindly check current sample project and let me know how to solve this issue.
I can't control payer in playground scene because of above error.
Hi, thank you for evaluating this asset. You can try baking the scene object when the prefab context is active by accessing it through "Menu / Fusion / Bake Scene Objects". If necessary, click on "Rebuild Prefab Table" afterward. lmk if that solves the problem. You can try doing it.
@@rualssyarif Hi, thank you for your response. I already did both bake scene objects and rebuild prefab table but nothing changed. Now i find out actual problem from your video (6:45) the advanced player have KCC component. In new sample project from photon fusion has don't have KCC it show warning notification with the associated script can not be loaded...... in above network culling component as well as i can't add kCC component to that prefab. kindly help me to solve this issues.
@@naveendevaraj6221 If that's the case, I will check on my side first. In the meantime, just to make sure, are you using Unity 2022 LTS atm?
or else providing any step-by-step instructions to reproduce the issue would be very helpful.
@@rualssyarif I using Unity 2022.3.2f1 LTS