Drag, Rotate and Snap an Isometric Camera in Unity | Bite-Sized Tutorials

preview_player
Показать описание
Welcome to a new video about working with an isometric camera! In this tutorial you'll learn how to drag your camera, rotate as well as snap the rotation to a given value.

#unity3d #unitytutorial #gamedev

Chapters:
0:00 - Intro & setting up
3:45 - Moving the camera
6:30 - Rotating the camera
7:50 - Snapping the camera
10:55 - Outro
Рекомендации по теме
Комментарии
Автор

What kind of magic does your tutorials have that makes them so much easier to understand?! Thank you for great videos.

sarahm
Автор

You are an angel sir. I've been fighting this camera for weeks

moksent
Автор

This video have helped a lot. Straight to the point. Thank you for this calm information convey
But I hope it can be integrated with multiplayer logic. I am guessing playerinput should be in prefab list of network manager and should be spawned with network manager

Magzhan-fufd
Автор

Thank you for a great vid. This way of implementing a moving isometric camera is around 1/8th the number of code lines compared to another tutorial on the same topic. Plus, it uses the new input system in a way that seems more like the way the devs intended.

I have a question: i want the camera to rotate 90 degrees per press. Similar to games like XCOM 2. What changes do you think are necessary to go from your code to that?

robertstan
Автор

Can the end values at 9:09 be anything other then integers? Will you have problems if someone ends their rotation at 90.5 degrees? Looks like thay might snap to 315

shazbah
Автор

Hello friend, would it be difficult for me to get to add the zoom function too? Thank you!

ErenBR
Автор

This is a wonderful tutorial and very helpful but how can we do that using a touchscreen?
I added touchscreen bindings to the Look, Move and rotate actions with delta for Look and Touch contract 0 and 1 for Move and Rotate as well as Hold interactions to them but it seems that camera is both moving around AND rotating around an object. How can I solve that so those two actions wouldn't work at the same time?

angelinapyankova
Автор

Other than the ff, my code is the same as yours:
private void Awake()
{
_xRotation = 30;
}
I changed the xrotation value since the camera would snap a lot of degrees to one direction after a certain point. Like normal rotation, then snap forward, then back to normal, repeat.

How do I make it rotate around the map and not like a first person game?

pass
Автор

How can I add movement limits to this camera controller, i don´t want to my users lose the play zone :c I tried to added but Im is kind of hard to me :C

dianarg
Автор

Hi, new to Unity here. How would you add a mouse scroll in order to zoom in and out (basically, increasing and decreasing the `orthographicSize` of the camera, if m not wrong)?
Many thanks in advance.

palanolho
Автор

hey so this video is amazing and actually something similar to a project i was working on, do you think it would be possible to change the code so instead of rotating with the mouse movement it rotates with a button press?

PolyglotPlays
Автор

I set this up so that X axis rotation is controlled by W _ _ D. Do you have any advice for setting up _ A S _ to control the Y axis?

crossian
Автор

How can you access the delta without working with the Input system?

bastianandrade
Автор

- Invalid expression term '>='
- Syntax error ', ' expected
How to solve?

hausmeme