Category "unity3d"

No active UnityEngine.XR.ARSubsystems.XRCameraSubsystem is available

I want to make an AR foundation project but I keep getting this problem .Can someone helps me please ? No active UnityEngine.XR.ARSubsystems.XRCameraSubsystem i

Using Layers and Bitmask with Raycast in Unity

Unity's Raycast functions has a parameter you could use to raycast to a particular GameObject. You can also use that parameter to ignore particular GameObject.

Shader error in 'TextMeshPro/Distance Field': failed to open source file: 'TMPro_Properties.cginc' at line 126 (on d3d11)

The textmesh pro file is not loading in unity. I am making a project using arcore and due to some issue with textmesh pro I was not able to build it properly.

JsonSerializationException: Unable to find a constructor for unity webgl build

I serialize a class in an azure function app and collect it via response to post in Unity3d. It's a WebGL project and it works fine on Editor but throws excepti

hololens - using Azure Anchors with Vuforia

We are using Vuforia for image tracking with hololens and unity engine. Vuforia works fine. We are also using Azure Spacial Anchors to fix the location of obj

Determining if quarternion rotation is clockwise or counter clockwise

I am using the following code to handle rotating my player model to the position of my mouse. void Update() { // Generate a plane that intersects the trans

Unity car steering

I am using Unity Car Pro for car physics. I want the car to slip during the steering. This script is working perfect but it is so real. Here are some images t

Unity C# finding GameObjects using tags

I am just starting out with Unity and C# and i am trying to make an enemy chase after the player. For the enemy to find and chase the player i am using the foll

Find which script is activating the object

There is a disabled gameobject in the scene. When i started the game that gameobject becomes enabled somehow. How do i find which script enables that object?. I

Unity C# : Destroy object when a new scene loads

currently I have a timer that has DontDestroyOnLoad function in order for it to cycle through scenes that needed a timer, my question is how can I destroy my ti

How to change collider in individual tile in tilemap

I am using tilemap in unity for level building. I need colliders on my tiles. If I add a tilemap collider to the tilemap it generates a collider around the tile

UnityEngine.UI not recognized by vs code and vs community [FIXED]

So i updated my unity to 2021.2.3f1, and vs code and vs community doesn't recognize UnityEngine.UI, i've tried: reinstalling Unity Hub, reinstalling vs code and

Is there a way to apply bloom to a specific object?

I've currently noticed that, if i uncheck the "is Global" checkbox on the Bloom Effect of a Post Processing Volume, even thought I adjusted my layer to affect o

Collider not working after changing object scale

In my 2d game, no collider is working after changing it's scale. My Spaceship/Sprite is surrounding with Box collider 2D. Now I want to use border and that's wh

Unity Gradle Build failed while trying to build project as an APK (2019)

I have a really big problem. I wasted many hours with trying to build a little game i made as an APK. I switched the build platform to android, installed the JD

The new Input System doesn't trigger anything anymore

This post is shamelessly a copy/paste from my post on the Unity Forums : https://forum.unity.com/threads/input-system-doesnt-trigger-anything-anymore.717386/, b

Writing and reading using socket

This is my code using UnityEngine; using System.Collections; using System; using System.IO; using System.Net.Sockets; public class s_TCP : MonoBehaviour { in

Creating Rope Physics for Unity

I want to create a bungee jumping-like game in Unity and therefore I need a rope physics. I especially need elastic ropes with capability to pull objects with v

How to make a Unity plugin support old versions of Unity?

I'm developing a plugin for Unity. Say, on my machine I have the most recent version of Unity installed (right now it's 2019.1.8). However, I also want the plug

View a Class from the Unity API

I am rendering my camera to a cubemap using gameObject.GetComponent<Camera> ().RenderToCubemap (cm); I want view the code for RenderToCubemap(), so I c