Unity character looking and moving the wrong way
Hey all, I'm working on making a 3D platformer in Unity and following this tutorial to help me: https://www.youtube.com/playlist?list=PLiyfvmtjWC_V_H-VMGGAZi7n5E0gyhc37 I'm currently on part 9 and for...
View ArticleHow can I fit a camera so that sprite takes up entire view?
I have a Camera which points at a Sprite, both are on the same plane and sit about 20 units apart. The Camera outputs to a RenderTexture, which has the exact same size as the Sprite. Currently, this...
View ArticleI've been working on a VR project in unity and I've been experiencing a...
When I start my game the camera, with which I am supposed to see something, always jumps back to the coordinates 0,0,0 even though the original coordinates in the scene tab are much different. I...
View ArticleHow to disable first person controller in Starter Assets - First Person...
I imported Starter Assets - First Person Character Controller to my project. In game with my PressKeyReadLetter.cs script, when I click "E", I want the player to stop moving. In another script, when I...
View ArticleHow to make enemy move through walls?
I am working on an enemy that should only move when the player is not looking at it. I tried using the Renderer.isVisible and everything works but if I look in the direction of the enemy through a wall...
View ArticleCinemachine : smooth transition when changing a vcam's LookAt
Hi folks, Just learning to use Cinemachine. When changing a vcam's LookAt transform (via scripting), my vcam immediately points to the transform. Visually, this is brutal. Is there a way to have a...
View ArticleProblem in game camera
Hello there I'm having a trouble about my game project coz when i run simulation it runs perfect but when i build it in apk the game object is missing pls help
View ArticleHow to make enemy move through walls?
I am working on an enemy that should only move when the player is not looking at it. I tried using the Renderer.isVisible and everything works but if I look in the direction of the enemy through a wall...
View ArticleFPS Camera slerp to aim at target
Hey, I use the following script to control the camera with the mouse: [SerializeField] private float sensX; [SerializeField] private float sensY; [SerializeField] private Transform orientation; private...
View ArticleHow to Pickup a game object and place it on the table box.
I have used a mediapipe blazapose hand tracking method to detect 21 landmark key points and generate xyz coordinates. Using UDP service I imported the coordinates into the unity which in which has...
View Articlecamera movement is very choppy on y axis
I am using this script for player movement and camera movement, and for some reason its really choppy when looking left or right. using System.Collections; using System.Collections.Generic; using...
View ArticleHow to change Assets Pixels Per Unit in Pixel Perfect Cam at runtime?
Im not sure how to reference the Pixel Perfect Camera. Get component does not work.
View ArticleDepth Texture not rendering properly during Play, but works fine in Editor.
I suppose a statement isn't a question. I'm having some issue with Unity's 2023.2.0a12 editor in regards to depth texture rendering. I'm using a simple Shader Graph made by Cyanilux:...
View ArticleHow to fix this problem with mesh being bright when far away?
![alt text][1] [1]: /storage/temp/207200-capture.png
View ArticlePan a 3D orthographic camera within bounds
Currently working on a system that allows the player to pan the camera around the world with their mouse. Only issue is that I don't know how to keep the player from panning so far they leave the map....
View ArticleHiding Object from one camera but keep shadows and not hide it from another...
I know that there are Culling Masks and Cast Shadows only but that doesnt solve my problem. I want to look inside a building from the outside so I hide one wall but i want to keep the shadows so my...
View ArticleSwitch between camera code not working
Hello, im a beginner of unity **** I have created a code to **change first person to third person** **** The problem is that is ***not working*** My code: public class CameraToggle : MonoBehaviour {...
View ArticleGame board not fully visible when changing resolution
Hi everyone, I want to learn unity for last week just to have some more experience, but I´m having an issue with my game where the entire board is not visible when I change the resolution. I've...
View ArticleRestrict camera rotation
In my game I'm using 3d person sample with Cinemachine camera, and I need to restrict it's rotation around y axis. I want it to be only behind the player, not in front of it. Any ideas?
View ArticleMeshes are invisible with opaque materials in game view
**Unity Version:** 2022.1.5f1 **Using URP Core** ---------- ### Recreation 1. Open Unity Hub 2. Create Sample Project with URP core 3. Add 3D object in sample scene with an opaque material 4. Switch to...
View Article