Category "unity3d"

Make players look direction relative to camera unity

I'm making a third person character controller in unity, I have the Player Moving with a direction and an animation. My question is: how do I make the movement

Is OnDestroy reliable in Unity?

In Unity I have a script in which I connect to a socket via TCP and want to use this connection every frame. I need to dispose and clean up after that. My idea

How can I determine which direction my car transform is moving

I have the transform for a car with the standard CarController Component from the UnityStandardAssets.Vehicles If I move the car and check the Speed from the Ca

How to get current folder from a C# static class on Unity

I imported a Unity package where several Editor scripts depend on a RootPath property from a static class: public static class EditorUtils { public static s

How to prepare Data-Set for main thread in an additional thread and stay threadsafe?

Description: (Following is only a low level description) Assume you have a List of automates, one of people and one of tasks. The corresponding Data comes from

Can i "add module" to unity editor that download without unity hub?

I downloaded unity editor from unity download archive but now i need the android build support module "also known as android SDK/NDK tools" but the "add module"

UNITY - Instead of a script there is a blank notepad

About five minutes ago everything was working fine, but after I restarted my pc, one of the scripts in unity stopped working. Other scripts can't access its met

Unity Physics2D.BoxCast() can not find GameObject on specific layer

I have a huge problem with the BoxCast method in Unity. I'm trying to get information if there is any GameObject under the player that is on a specific layer bu

Trying center a tower on tilemap

Iam making a placement system using tilemaps, its almost done but have a small problem. Placement System As you can see the tower never be on middle of tiles, i

firebase remote config. fetching failure: http code 403 unity

I started getting 403 errors when initializing remote config in my application. Everything was working fine until a while ago. I connected google play services

Finding the closest vertex below a certain height, from a start position

I have procedurally generated Islands with lakes, its basically a 3D mesh that has points above the water line and points below it, any vertex/point below the w

Count Rotations in unity 2d game

I am making a game in which the character falls down on a slope and is constantly rotating clockwise at a fixed rotation. If it lands on it's feet it jumps. The

How to hide/disable 'My Mac (Designed for iPad)' Build Target - Xcode 13

Recently I moved to using an M1 Mac Mini as a build machine for Unity IOS projects through Xcode. Often I would use the Unity option to 'Build and Run' which wo

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