Unity Multiplayer Tutorial: Spawn and Equip Items Using Unitys New Multiplayer System (MLAPI)

  Рет қаралды 11,520

Slaymuel

Slaymuel

Күн бұрын

Пікірлер: 44
@MarshmallowBoy
@MarshmallowBoy 3 жыл бұрын
Nice to see a tutorial that doesn't take half a fuckin hour to get started
@Santiago-bl3xu
@Santiago-bl3xu 3 жыл бұрын
Very useful tutorial. I am trying to get acquainted with MLAPI, but the documentation, examples and tutorials are as of now scarce. Keep it up!
@slaymuel4474
@slaymuel4474 3 жыл бұрын
Glad you found it useful! I have started to work on another MLAPI tutorial about picking up and dropping items. Also taking damage using syncvars. I'm aiming to complete it before next weekend.
@jasondegoumois3809
@jasondegoumois3809 3 жыл бұрын
Got a clue on how to make it so that someone can use magic but only that person can use that magic, and it does damage, also you are so underrated you deserver more subs
@unity_with_timoteo
@unity_with_timoteo 3 жыл бұрын
Finally someone who knows stuff and how to teach them. Fantastic man! You could make a series on MLAPI. Teaching about, take damage, take objects over ground, health, spawn objects, shoot with bullets and raycast, open door, inventories, sync spawnable objects to new players, respawn dead players, all this comenting what is good and bad pratices, just like you did here. I hope you get all the subs and views you want. Cheers!
@slaymuel4474
@slaymuel4474 3 жыл бұрын
Thanks for the nice comments! I will try to make some more MLAPI videos in the future, maybe some more full fledged ones also. I want to try to make videos about stuff I think is lacking in other tutorials.
@dmytrogladkyi
@dmytrogladkyi 2 жыл бұрын
Just what i was looking for!
@CodMinecraftstyle
@CodMinecraftstyle Жыл бұрын
thank you my guy, saved hours of insanity
@haydenfranks4191
@haydenfranks4191 3 жыл бұрын
This was such a good tutorial! You did a great job at explaining everything so I can apply this to my game really easily. Only advice is to full screen visual studio so the text is easier to read
@M4nichean
@M4nichean 3 жыл бұрын
Dude, this was pure magic! just great!
@slaymuel4474
@slaymuel4474 3 жыл бұрын
Thanks!
@okiramasutiktoks4501
@okiramasutiktoks4501 3 жыл бұрын
would love to see more mlapi tutorials! youre amazing
@onehornstudio7152
@onehornstudio7152 3 жыл бұрын
So nicely explained.. thanks
@macarongthieusang
@macarongthieusang 3 жыл бұрын
That's all i need. thanks you
@Birillox69
@Birillox69 3 жыл бұрын
First tutorial? O.o you're really great. Thank you bro
@slaymuel4474
@slaymuel4474 3 жыл бұрын
Thanks, glad you enjoyed it!
@jugibur2117
@jugibur2117 3 жыл бұрын
Thanks for your work, got a lot of infos here!
@tehuster
@tehuster 3 жыл бұрын
Great tutorial dude! Keep up the good work. Subbed!
@khanlakhno2757
@khanlakhno2757 3 жыл бұрын
Continue MLAPI series please
@GraphicalBoss
@GraphicalBoss 3 жыл бұрын
Love it! Great job 👏👍 SUBSCRIBED
@tonihenriksson2399
@tonihenriksson2399 3 жыл бұрын
Make a tutorial on how to set up a multiplayer project from start to finish? :P An simple one :P Would be epic!
@PeterMilko
@PeterMilko 3 жыл бұрын
Is it better than PUN? PUN is still cheaper right?
@gamerweed6949
@gamerweed6949 3 жыл бұрын
What do you think?
@PeterMilko
@PeterMilko 3 жыл бұрын
@@gamerweed6949 Ima stick with PUN for now, its more developed
@gamerweed6949
@gamerweed6949 3 жыл бұрын
@@PeterMilko but its expensive right if u host ur game but i will admit it is more devoloped iam trying to use mirror currently
@あれくす
@あれくす Жыл бұрын
Any chance you can touch on spawning weapons in a complex prefab like Synty modular character? Transform parenting is a nightmare.. ive tried past few days to get it to work without luck.
@aekzel
@aekzel 3 жыл бұрын
Nice tutorial but I have an issue with your solution .... I can't get rid of a 'NotServerException'. Clients cannot spawn their own cube, server won't let them ... Any solution please ?
@magicpixeltree
@magicpixeltree 3 жыл бұрын
awesome
@FlizzyGlizzy
@FlizzyGlizzy 2 ай бұрын
How do you equip a networked object to a none networked object (the arm)
@jasondegoumois3809
@jasondegoumois3809 3 жыл бұрын
Can you make a video or even tell me how to make an inventory, and being able to pick up items so you can equip them but you need to have the item to equip it, and also how can I make it more than one item in the equip thing thanks and sorry for bugging you
@sqw33k
@sqw33k 3 жыл бұрын
I have a slight problem with Parrelsync which is that the execution of either non selected copy of Unity seems to "fall behind". As in, the (selected) one is sending data in FixedUpdate but the other isn't handling it at the same rate in it's FixedUpdate. If I switch it catches up and now consumes data faster than the other is sending. Is this related to windows not giving enough resources to handle both applications at equal priority or something else entirely? Regardless, I'm welcoming any and all tips on how to solve this.
@jasondegoumois3809
@jasondegoumois3809 3 жыл бұрын
the using unityengine.inputsystem doesnt exist anymore i could not find it, and i cannot do the bit where it says if(keyboard.current.digitkey._______)
@slaymuel4474
@slaymuel4474 3 жыл бұрын
I think that it is part of the new input system, which you can download it from the package manager. But if you want to capture inputs from the user i would suggest setting up events (also using the new input system though). If i'm not mistaken there are tutorials for this on the unity website. Hope you get it to work!
@jasondegoumois3809
@jasondegoumois3809 3 жыл бұрын
@@slaymuel4474 i think i fixed it, its just now you can infinitely make them idk if its in the video but ill see the rest
@あれくす
@あれくす Жыл бұрын
This does NOT work if you try and parent the item to a non network object/transform. Furthermore, it won't work if you aprent it to a network object/transform that has not be SPAWNED into the scene... so if you have a player control network object with a child transform that has hands, arms, etc.. if you try and spawn the network weapon object and set its parent to be the player's hands... unless you've also spawned in those player hands.. which will create the same error as above... you can't parent the weapon/item... super annoying. What is the work around?
@ZICKFREED
@ZICKFREED 3 жыл бұрын
Why does everyone have the same thing? why is there no tutorial on how to create a server to manage this spawn on the client? The server is very important
@jasondegoumois3809
@jasondegoumois3809 3 жыл бұрын
Ok So I have tried looking it up and have tried fixing it with different methods its just i cannot get this error out of my way: Assets\EquipItem.cs(24,9): error - ServerRpc method must be marked with 'ServerRpc' attribute!
@slaymuel4474
@slaymuel4474 3 жыл бұрын
Make sure that you have the [ServerRpc] decorator above the function. Also your function name has to have the suffix ServerRpc (i forgot to say this in the tutorial unfortionately....). So for instance private void YourMethodNameServerRpc(){} See this: docs-multiplayer.unity3d.com/docs/advanced-topics/message-system/serverrpc Hope this solves your problem!
@watercat1248
@watercat1248 3 жыл бұрын
ok what exactly is the MLAPI ?
@EbbsClifton33
@EbbsClifton33 3 жыл бұрын
Can you please make a tutorial how to do object pooling with mlapi?
@slaymuel4474
@slaymuel4474 3 жыл бұрын
I'm working on another tutorial, and i will make sure to include object pooling. Will upload in a day or two!
@EbbsClifton33
@EbbsClifton33 3 жыл бұрын
@@slaymuel4474 Awesome! thanks man :)
@tinytea3323
@tinytea3323 3 жыл бұрын
Any idea how to despawn from client?
@slaymuel4474
@slaymuel4474 3 жыл бұрын
You can send a server rpc from the client and pass in the NetworkObjectId of the object which you want to despawn. Then call despawn() on the networkedobject from the server. As far as i know, you cannot despawn directly from the client. Hope it helps!
How To Set Up A Dedicated Multiplayer Server - Unity PlayFab
13:26
Watch this before using MLAPI
9:32
Mercenary Camp
Рет қаралды 32 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 15 МЛН
兔子姐姐最终逃走了吗?#小丑#兔子警官#家庭
00:58
小蚂蚁和小宇宙
Рет қаралды 11 МЛН
How to whistle ?? 😱😱
00:31
Tibo InShape
Рет қаралды 18 МЛН
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
How To Build An Event System in Unity
8:01
Game Dev Guide
Рет қаралды 413 М.
How to setup Global Matchmaking for Unity
12:27
Tarodev
Рет қаралды 75 М.
How to Improve Blender's UI
20:27
Blender
Рет қаралды 18 М.
How To Make A Multiplayer Game In Unity 2021.1 - Boss Room Sample
14:50
AI Navigation and Wandering in Unity C# - AI Mastery Part 1
16:32
Zeus Game Assets
Рет қаралды 205
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 15 МЛН