Questions tagged [cinemachine]

Cinemachine is a packaged plugin for Unity3D, responsible for controlling all manner of camera settings, including blending between virtual cameras.

67 questions
0
votes
0 answers

Unity cinemachine confiner 2d go over it limits with the polygon collider 2d

using System.Collections.Generic; using UnityEngine; public class TouchMovement : MonoBehaviour { // 2d smooth horizontal drag system for mobile and mouse public float dragSpeed = 2; private Vector3 dragOrigin; void Update() …
Hany.
  • 3
  • 2
0
votes
1 answer

The camera is like in "Enter The Gungeon"

I need to create a camera that will follow the mouse while moving parallel to the character, to solve this problem I wrote this code but the camera flies away public class cam : MonoBehaviour { private Vector2 MousePos; …
Gn0rl
  • 1
  • 1
0
votes
1 answer

How to hide the dead and soft zone,height and width from play mode scree

I used the Cinemachine for camera follow, but I want to hide the dead and soft zone colours from the screen and not have it show those colours during runtime.
LEGIT
  • 21
  • 4
0
votes
0 answers

Cinemachine in unity 2022.1 weird errors

I am using cinemachine to make a camera that follows the player in a 2D top-down game. The problem is that pieces of the background disappear and reappear when the player moves, and some of the outlines of objects seem to render late in comparison…
0
votes
1 answer

How to move camera with Swipe using new Unity input system?

Using Unity's new input system, I would like to detect a start touch and and end touch. Using these, I'd like to compute the distance and direction for the camera to move, so the camera moves with a "swipe". However, I am having trouble figuring out…
0
votes
2 answers

The CineMachine Camera ruin the 2d parallax Effect because its shaking

I am working in a 2d platform game I applied cinemachine camera and parallax script to give a good effect ,but the parallax is shaking and vibrating hard , I found out that the cinamchine was the reason because the camera it shaking, when I disabled…
0
votes
1 answer

Cinemachine 2D Not working as it should be

When my player jumps the camera follows the player perctly (Btw I got the x dead zone activted with 0.5) but when the player falls, the camera doesn't follow it. cinemachines2D settings
ShadowSPM
  • 13
  • 3
0
votes
0 answers

Certain objects in unity 2d cinemachine target group camera offsetted

Im making a star wars game for fun, im using cinemachine to have a target group camera to get the camera between the 2 players and sized appropiatly. The players have hinge joint connecting to lightsabres. When the game starts only the lightsbares…
0
votes
2 answers

unity instantiated player with photon attaching to cinemachine

So before i used photon i used to have the player attached to the cinemachine camera in the inspector but now that im instantiating the player at runtime i really have no clue how that works, im making a 2d topdown game so i cant have the camera on…
Evolight
  • 29
  • 5
0
votes
1 answer

Unity Cinemachine cant GetAxisValue CS1061

Beginner here trying to follow a tutorial on youtube but two scripts wont reference correctly and keep getting error CS1061 on code snippet GetAxisValue. https://www.youtube.com/watch?v=PsAbHoB85hM&t=589s here are two code snippets Part of…
0
votes
0 answers

(Unity) Parallax background bug - tile map follows camera as well?

Asking this question due to not found solution anywhere else. I created an infinite parallax scrolling background, but now wherever I go with character, the tile map follows me? Can this be a bug due to Cinemachine package I'm using? Here's my…
ringazas
  • 23
  • 6
0
votes
1 answer

CHARACTER ROTATION depending on camera IN UNITY

I'm making a 3rd person controller in unity and i'm stuck: i can't figure out how to make the player follow my freelook cinemachine. using UnityEngine; public class PlayerMovement : MonoBehaviour { public float speed; public GameObject…
fanti
  • 1
  • 2
0
votes
1 answer

how to check if a virtual camera has fully transitioned or not in C#?

I'm working on a C#/Unity project, and I want to know when the cinemachine virtual camera has fully transitioned to another cinemachine camera. I've seen people using IsBlending, but I'm still not sure how to implement that code in my project. My…
Yuuu
  • 715
  • 1
  • 9
  • 32
0
votes
2 answers

Name 'Cinemachine' could not be found

I'm a beginner of Unity and C#. I'm trying to manipulate the cinemachine camera using a script, but the VScode throws an error saying The type or namespace name 'Cinemachine' could not be found. So I tried removing the cinemachine from the package…
Yuuu
  • 715
  • 1
  • 9
  • 32
0
votes
1 answer

How to rotate player towards mouse position with a moving camera using cinemachine and input system? Unity 2D

I already know how to rotate the player based on the mouse position, there are tons of tutorials about that. However, every time I need the camera to move (normally using cinemachine) I get a supper jittery movement and the way the player faces the…