Category "unity3d"

Deployment from unity to Hololens 2 giving error DEP6957

Goal: Deploying an application from Unity to Hololens 2 Problem: Yesterday every deployment i did worked correctly. But today when i tried to deploy a new versi

Azure Kinect DK, Body tracking: Mapping separate avatars on separate skeletons

To recreate my issue, I've setup a project in Unity3d 2020, using this sample project. Here I can successfully map an avatar to a single skeleton. In my project

Unity Android App Bundle Builds sometimes have double size

We are using Google's App Delivery package in our game to escape APK download size limit. First a few builds were completely fine. But later, our download sizes

Unity: Convert Vector2 to Vector2Int

I have a Vector2 and I want to convert it into a Vector2Int. I know I could convert the Vector2 with something like this: Vector2 v2 = new Vector2(10, 10); Vec

How to change the morphTime at runtime?

I copied the whole switch/case part to the Update to be able to change the modes also at runtime. but I want also to be able to change the morphTime at runtime

Firebase storage requires twice during upload

I found that storage requires twice during uploading a single file Like this: Uploading : 0 out of 19160 Uploading : 19160 out of 19160 Uploading : 19160 out of

trying to make an enemy shoot a projectile at the player when the player enters the enemys range

for some reason the projectile is fired but only when the enemy comes into contact with the player and very slowly for some reason. below is my code. (there i

unity animation trigger inspection

When setting a trigger in unity animator, and the state machine is not in a state where it can invoke the trigger, the trigger is "charged" and will set off the

After updating to unity 2021.1.13.f1 isNetworkError and isHttpError is already obselete

if (www.isNetworkError || www.isHttpError) { Debug.Log(www.error); } Does anyone know how to replace this code properly to the upda

'Image' does not contain a definition for 'color' on Unity

Can't use Color on Image component. Looked for solution but no luck. How can i use color on Image? Here is the sample code that should work public void Locke

The prefab asset from the assetstore is not imported correctly (3d model with animation)

I am importing a purchased asset from an assetstore. Animated cat model. However, all prefabs are assembled incorrectly at once, the components are not in the

Unity3d - Trying to change color of Material via C#

I've looked all over for a solution for this and it seems simple enough but I don't understand why I can't change the property of one of the materials located o

Unity: Runtime-Terrain-Editor How to raise a circle

I'm trying to create a terrain editor, that works on runtime. At this point I can raise a square but have problems to raise a circle-shape. I saw this post and

What's the difference between Unity LTS and Unity latest version?

As of this writing Unity has a version called Unity LTS 2017.4.12f1 and the latest version of Unity is 2018.2.11 I understand that Unity LTS is supposed to b

Unity2D how do i calculate jump height using Velocity & Gravity

i would like to calculate the jump height. but i don't know how Example: RightBody2D rb = this.GetComponent<RightBody2D>(); // Do jump rb.velocity = new

How to remove Visual Studio 'IDE' warnings for a Unity project?

I've been trying to get rid off IDE warnings for a Unity project: While csc.rsp works for CS warnings, it doesn't for IDE warnings: -nowarn:CS0649,IDE0063,I

How can i draw a cable with touch in Unity (like vacuum cleaner plug cable)

I can drawing line with line renderer. But i want to pull that line with realistic effect like vacuum cleaner cable. video (for 5 sec) I want to connect all the

How to change text by script in Unity

I have a unity project with a text field and I want to change it to something else by clicking a button. Like javscript ids. Can someone help me?

Unable to start Oculus in Unity Editor

Hi everyone) I can't see the oculu's rotations in unity editor when press play button. No errors((( Unity - 2019.4.37f1 Oculus XR Plugin - 1.12.0 (try 1.11.2)

Error on Main Camera in Unity: "The renderer used by this camera doesn't support camera stacking. Only Base camera will render."

I just updated my unity version from 2018 to 2019. Also, I've got a new render pipeline for the 2D lights feature, and there is this weird white flickering when