5:03 dunno if you already know this, but when you add a PlayerInput component, there is a button called "Create Actions...", which basically lets you create a copy of DefaultInputActions.
@samyam
3 жыл бұрын
🤦♀️no I did not see that, I was wondering how there wasn't another way, thanks for letting me know!
@TwinStick
3 жыл бұрын
This is something unity has been needing for a long time!
@victorlapin2080
3 жыл бұрын
Useful stuff right here, thanks Sam 😊👍
@jamescharnley2522
2 жыл бұрын
I am having a problem with this setup. When I spawn in the second player the Canvas group component on the first player's canvas automatically gets disabled and can no longer be interacted with. I can't find any info about how to prevent this.
@GameDevDave
3 жыл бұрын
You are so awesome! Keep it up, i love your tutorials
@samyam
3 жыл бұрын
Thank you!
@marsblack927
2 жыл бұрын
Great course , I am curious if you have a course on local multiplayer where you reuse the same UI canvas without saving the ui as a preset and instantiate it in every player or cloning it for everyplayer. So basically you have one UI canvas object that can be used by any local player to access the menu and change configs to it's player prefs. I say this because the current solution of cloning the UI for every player i find a bit wasteful
@vinipossatto9586
3 жыл бұрын
Nice video! Your work are awesome, I love yours videos, is very useful
@samyam
3 жыл бұрын
thank you!
@Delvarn
2 жыл бұрын
Great video and followed along until the end. I really want my 2 players to choose their characters on the same screen, independently, but I'm struggling with what needs to be connected to what. So I can spawn a player prefab, and event spawn and associate the eventmanager with it. But how do I connect it to its own specific canvas without getting muddled with player 2?
@gameclips5734
Ай бұрын
that's what the "Player Root" part of the multiplayer event system is for
@theparashari5833
2 жыл бұрын
Love your voice mail ❤️
@Pierre_Dev
2 жыл бұрын
how would you make it work in a single Canvas? like a character selection screen? thanks for the help until
@DanielAbonales
3 жыл бұрын
Thanks for tutorial sam keep going
@samyam
3 жыл бұрын
😁
@surfgame
Жыл бұрын
At 5:08 instead of copying that file and using the new copy I copied the UI action map and pasted it into the Playercontrols input action map.
@TheUncutAngel
3 жыл бұрын
9:25 how would you apply that via script?
@TheUncutAngel
3 жыл бұрын
nvm, i just referenced the multiplayer event system and set the current button to null and then to what I wanted it to be. private MultiplayerEventSystem MPES; MPES.SetSelectedGameObject(null); MPES.SetSelectedGameObject(GameObject.Find("the name of the button i want to set the selection to"));
@holmbergen
2 жыл бұрын
7:12 and following section could be replaced if you used the "Button - TextMeshPro" option, TextMeshPro offers a lot higher quality text rendering. Unity's old text UI render is pretty much obsolete (yet they haven't removed it). I completely overlooked Unity has added Multiplayer Event System script (working on my local coop game). Thanks!!
@greglhoffmann
Жыл бұрын
for a character selection screen similar to smash bros, is there a way to let multiple controllers select different objects on just ONE UI canvas? Thanks for the video
@ashmcconnell3868
2 жыл бұрын
Great tutorial, found it really useful! I'm having a problem where it only uses the right hand side of the screen despite having the Split Screen screen rectangle set to 0,0,1,1. Has anyone else had similar problems (Unity 2020.3.17f1 and Input system 1.2).
@ashmcconnell3868
2 жыл бұрын
Oops, 2 player input components
@a.technology1446
3 жыл бұрын
Great thanks
@XboxPlayerPL
Жыл бұрын
it doesn't work, ui is disabled for both players
@FaebuOG
2 жыл бұрын
Hey great Videos. I need your help. How do you make a local multiplayer co-op System without spawning a prefab of a player when the second controller joins the game. For example I'm making a tableSoccer game and I have 4 poles (every pole has a separate script on it) where I can switch between the 4 poles. How can the second controller get access to the other 4 poles of his team without spawning them with a prefab? They are already in the scene. You would help me so much if you have a solution for that!
@samyam
2 жыл бұрын
Thanks! Try checking the pinned comment of this video, I show how to manually instantiate players, so you could implement custom functionality before they are instantiated kzitem.info/news/bejne/yJWplq1rsnipjJw
@FaebuOG
2 жыл бұрын
@@samyam Hmm okayy, I think I got a big Step closer. However I've attached the different scripts to the poles (1-4 Player1) & (1-4 Player2) but it doesn't recognize which controller I'm using. I made 2 Controll Schemes. Player1 & Player2 and have added to every pole a Player Input Component. Default Scheme is right, AutoSwitch is unselected. What am I doing wrong :D
@FaebuOG
2 жыл бұрын
At the moment I can controll the opposite pole and mine with one controller
@FaebuOG
2 жыл бұрын
and I get the console error for the Player Input Manager: *PlayerPrefab must be set in order to be able to join new Player*
@FeLiNaLabsLTD
3 жыл бұрын
Hello, would you be willing to help us add local multiplayer to our offline game ?
@samyam
3 жыл бұрын
Sorry but I cannot help your project directly, but we do have a discord channel if you'd like to join and ask any questions there discord.com/invite/B9bjMxj
@FeLiNaLabsLTD
3 жыл бұрын
@@samyam alright, I just joined the discord channel, thank you.
@Vastlee
3 жыл бұрын
Came for the Buddons. Stayed for the Multiplayer Code on how to click Buddons. Also... Buddon
Пікірлер: 35