Category "unity3d"

Unity gyroscope reads only two axes

I want to make it so that the gyroscope will only change the x and y-axes of an object. There is code for one axis and for three axes (mostly used), but I could

Unity Build Error: "System.UnauthorizedAccessException: Access to the path 'C:\Users\..\lib_burst_generated.txt' is denied."

I have a project in Unity which was built with version 2019.4.13f1. I opened it with version 2021.2.16f1 and since then when I try to build the project in an ap

Physics.Raycast Grounddrag system not working

I'm trying to implement a unity FPS Rigid body movement controller into my Unity 3d project. However I cannot seem to add drag to my player. I've been trying to

Intellisense not working in VSCode - OmniSharp Error

Intellisense has stopped working for me and whenever I run VSCode this error comes up in the OmniSharp Log. [warn]: OmniSharp.MSBuild.ProjectManager Fai

Debug -> Windows -> Memory for a Unity project?

I need to inspect memory content for a Unity project while debugging it. No matter what I try, such as Use managed compatibility mode, the Memory window despera

VS Code can't catch breakpoint in unity3D

Generally, when I want to debug, I just need to set breakpoint, run debug in VSCode and then get in Play Mode in Unity3D, if it captures any break point, the Un

Unity Ads "Advertisement does not contain definition for IsReady"

So I'm trying to implement unity ads into my game, but it throws the error Assets/Scripts/UnityAds.cs(23,28): error CS0117: 'Advertisement' does not contain a d

Need help Slerping positions and rotations

I have 2 scripts on my camera, one for following the player ( FollowTarget.cs ), and one which is supposed to, over time, Slerp the camera's transform position

Unity Cinemachine Free Look jitter while networking

I've spent days on this, so I'm writing this for anyone who comes across it. Problem: I created a spectator camera in a multiplayer game, which is a Cinemachine

Can I disable the logging of a specific GameObject without modifying its script in Unity?

For example, I have a GameObject A with the following script public class A: MonoBehaviour { private void Update() { Debug.Log("Log something");

How to fix Unity Hub's "could not be opened. Please check the logs." error

Whenever I create a new project, I can't seem to open it. It displays "My Project could not be opened. Please check the Logs". Whenever I try to open the Unity

Generally what would cause Unity Editor freezes and not responding?

I have encountered a critical issue that Unity Editor freezes. I've spent many hours debugging step by step of my codes but still can't find where the problem i

NodeMCU Unity Connection, using UDP

I am trying to connect NodeMCU with unity for my university project. My nodemcu receives data (tested with a UDP test tool application). I will leave the code b

OpenXR FOV in Unity Editor too small for Hololens 2

I have a problem after switching from Unity integrated XR to Open XR when using Holoremoting. The Unity Editor FOV 29 deg, although the Hololens 2 FOV is 54 deg

WaveSpawner in Unity

i have a wave spawner script from a video i saw, since I'm fairly new to this still and its just more so a learning experience than anything really, but when sp

unity-photon- how can get other player's companent

I'm making a multiplayer game. I want to make a system. When a "x" player play a game and there is a "y" player. "x" player should see "y" player's score on "y"

Can't exit function properly

I have a C# unity function and I'm trying to request some json from a webserver but for some reason its not exiting the function where I want it to: using Syste

Pick a section of an image in c#

I have an image with multiple portraits inside, how can I pick each one of them without cutting the image in photoshop or something like that. The image would b

Unity CS1001: Identifier expected but all syntax is right?

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class QuizManager : MonoBehaviour { public List

Is there a way to import a texture in a specific format?

I'm trying to load a rendered image from Blender into Unity. But I saved the image with a color depth of 16 bits per channel, and now I want to have the same ac