Unity Individual Cameras - Steam Multiplayer Game in Unity

  Рет қаралды 17,773

Zyger

Zyger

Күн бұрын

In this video I will be showing you how to implement individual player cameras. I will go over how to get the initial camera system working. And also how to get it synced across the network.
Source Code: www.patreon.com/posts/6988323...
-----Tutorial Links-----
Previous Video: • Unity Individual Camer...
Steam Docs: partner.steamgames.com/doc/home
-----My Personal Links-----
Discord: / discord
Instagram: / gabzxd
Twitch: / officialzyger
Twitter: / zygerdesigns
➤WISHLIST MY GAME:
store.steampowered.com/app/16...
----Time Stamps-----
0:00 - Intro
0:08 - Unity Setup
0:33 - Camera Script
3:19 - Final Unity Changes
3:37 - Final Result

Пікірлер: 36
@Asky_
@Asky_ Жыл бұрын
one of the best tutorials around. would be nice if you made one with unity netcode
@karmaa1036
@karmaa1036 10 ай бұрын
Modify the "OnStartAuthority" method to the following public override void OnNetworkSpawn() { // This is basically a Start method cameraHolder.SetActive(IsOwner); base.OnNetworkSpawn(); // Not sure if this is needed though, but good to have it. }
@imchase8600
@imchase8600 3 ай бұрын
I have been having this problem for days! thank you so much!@@karmaa1036
@kyroic6128
@kyroic6128 Жыл бұрын
thanksss, i ve been having this issue for a long time and couldnt find solution anywhere. I adjusted your way for photon network and it worked.
@melihkorkmaz6106
@melihkorkmaz6106 Жыл бұрын
thx for the tutorial. congrats for your new job :)
@bananastudiotheprogramer
@bananastudiotheprogramer Жыл бұрын
Nice tutorial keep it up!
@GabrielFerreira-ot8cg
@GabrielFerreira-ot8cg Жыл бұрын
Great tutorial, thank you :)
@ee500ee
@ee500ee Жыл бұрын
thanks, you made it very simple 😃
@nunya_bysnes0014
@nunya_bysnes0014 Жыл бұрын
Nice job
@Crandor
@Crandor Ай бұрын
Nice tutorial :) I'm still wondering how to make the camera's rotation work, so like make the player move in the direction the camera is facing at (transform.right?).
@aimojorma7674
@aimojorma7674 7 ай бұрын
Nice tutorial, but you forgot to add this and the next tutorial to your steam multiplayer playlist :)
@studio_gimbap
@studio_gimbap 6 ай бұрын
thanks!!
@phatlienminh8928
@phatlienminh8928 3 ай бұрын
if i have 2 player, camera in scene have 3 (main, cam_player1, cam_player2) it make view of each player can't move anymore. What should i do, if just 1 player it run perfectly
@davidherzog6023
@davidherzog6023 Жыл бұрын
Cool😊
@TNCGamer
@TNCGamer 8 ай бұрын
it works but when another person joins the game my camera rotation doesn't turn with the player anymore..and when he leaves it starts working again
@coolorphans
@coolorphans Жыл бұрын
thanks babe as always
@ggng_leo6227
@ggng_leo6227 Жыл бұрын
nice tutorial now though can you put that you can move the view? thanks
@ZygerGFX
@ZygerGFX Жыл бұрын
Could you explain what you mean ?
@ggng_leo6227
@ggng_leo6227 Жыл бұрын
​@@ZygerGFX that you can turn and move the visual
@sggsgsggsrr
@sggsgsggsrr Жыл бұрын
Finally
@emptybruh
@emptybruh Жыл бұрын
Does this use Untiy Network Gameobjects alongside Mirror?
@ZygerGFX
@ZygerGFX Жыл бұрын
no its mirror and steamworks
@halo123proplem
@halo123proplem Жыл бұрын
Is there a reason you assign the position every frame even though the camera is a child object of the player?
@ZygerGFX
@ZygerGFX Жыл бұрын
Because the position isn't exactly the parent position there is an offset that gets added so we need to update it. Also if your wanting the camera to lerp you'd need to do this
@halo123proplem
@halo123proplem Жыл бұрын
@@ZygerGFX that's logical, so you could also just assign the offset to the local position of the cameraholder. but does the cameracontroller have to be on the playerobject? It seems counter intuitive to have all the components on the same object
@ZygerGFX
@ZygerGFX Жыл бұрын
@@halo123proplem No it doesn't have to. in fact in my own little project it isn't. I made it on the same object here for simplicity's sake. If I had it not be parented then there would be a little more work to do, and since a lot of beginner people follow these tutorials I opted to not go that route. By all means if you are seriously trying to make a game that you're planning on releasing then I would recommend using a different system since I agree with what you said of it being counter intuitive, but most people don't which is why I did it that way in this tutorial.
@halo123proplem
@halo123proplem Жыл бұрын
​@@ZygerGFX Thank you for the clarification and thank you for these tutorials. I would love to see a network tutorial for how the players interact with objects in the scene, f.x picking up a box or kicking a box. do you have anything like that planned?
@ZygerGFX
@ZygerGFX Жыл бұрын
@@halo123proplem I haven't got anything planned like that though its a good idea. I will probably at some point do something similar though don't know how long it will be till then.
@ViggeGee
@ViggeGee 6 ай бұрын
Everything works except that the client cant see the host player. The host player can however see the client player
@birdboy4774
@birdboy4774 Жыл бұрын
Can you do another version with cinemachine?
@SantaGamerYoutube
@SantaGamerYoutube Жыл бұрын
It's basiccaly the same, we just affect the camera holder
@samuelhedrick356
@samuelhedrick356 Жыл бұрын
Or just get if not local player then deactivate camera
@ZygerGFX
@ZygerGFX Жыл бұрын
Yeah its the same thing just the opposite way around. But also can be used :))
Why Making Multiplayer Games SUCKS
6:46
Tom Weiland
Рет қаралды 389 М.
How I prepare to meet the brothers Mbappé.. 🙈 @KylianMbappe
00:17
Celine Dept
Рет қаралды 53 МЛН
Why? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 47 МЛН
КАРМАНЧИК 2 СЕЗОН 5 СЕРИЯ
27:21
Inter Production
Рет қаралды 582 М.
I Tried JavaScript
6:53
Zyger
Рет қаралды 10 М.
Easy Multiplayer in 7 minutes - Unity - Ep. 1 Setup (Fishnet Tutorial)
7:09
Making MULTIPLAYER Games has never been EASIER!
12:49
Code Monkey
Рет қаралды 72 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,4 МЛН
Гайд по Mirror мультиплееру в Unity 2д
18:29
7 Days of Working on my Story FPS Game - #Devlog 1
8:55
How to use Cameras in Unity: Cinemachine Virtual Cameras Explained
14:31
2D water magic
10:21
Steve Mould
Рет қаралды 408 М.
Learning C# In A Week... Otherwise I Fail University
9:04
路飞的心都被小女孩融化了#海贼王  #路飞
0:32
路飞与唐舞桐
Рет қаралды 17 МЛН
Aramızda dağlar var 😂 #funny #viral #shorts
0:12
HASAN TARHAN SHORTS
Рет қаралды 6 МЛН
Самолёт Падает! Но Осталось 2 Парашюта... @NutshellAnimations
0:35
Глеб Рандалайнен
Рет қаралды 2,2 МЛН
Ну Лилит))) прода в онк: завидные котики
0:51
БАСПАНАҒА ТАЛАСҚАН БАУЫРЛАР/ KOREMIZ
46:53
Көреміз / «KÖREMIZ»
Рет қаралды 237 М.
Носила Маску 2 Года!
0:20
КОЛЯДОВ
Рет қаралды 874 М.