Category "unity3d"

How to properly inject object-scene dependencies in unity with zenject

I have a scene object with a Fruit test script whose interfaces I want to add to dependencies. To do this, I use the standard Zenject Binding script. However, t

In Unity, while debugging, If I watch "System.Text.RegularExpressions.GroupCollection".Item[String], it gives an error

I'm using Regular Expression in Unity.(Unity2020.3 with Visual2019) As shown in the picutre below. I can use groups[str] to get the group. But while debugging,

How to instantiate a prefab with AI pathfinder?

My problem is everytime I will instantiate the prefab with AI pathfinder, the spawning prefab is not moving. enter image description here

Unity WebGl escape button

first of all sorry about my english. in unity2020 webgl , when i want to control escape button in web to show pause menu , in editor everything is fine , but in

how can i make the object move on that path in unity2D? [closed]

i want my enemy to be move like this in this picture. How can i achieve this in unity 2d.

How Can I Use Turkish Alphabet In My Game For Unity?

I am developing a 2D Video Game as a school project which I am currently using Text Mesh Pro on. But there is an issue. Since my game is Turkish, I need to writ

How to make jump system in unity?

Here is my code for moving around in Uunity, however I can't seem to make the character jump. The moving camera and collect item on collision has also been impl

Performance wise, arer both theses lines of code the same in csharp for Unity?

Performance wise, arer both theses lines of code the same ? pictureExample.sprite = Resources.Load<Sprite>("my_png"); pictureExample.sprite = Resources.Lo

Using one scene for infinite levels

I am trying to make a game where there is a single scene, which will be used for an infinite number of levels until the player loses. All of my code is currentl

why am I getting this 'the referenced script on this Behavior is missing!' error in Unity?

I'm trying to make a simple FPS movement script in Unity. I made a player called 'player' with a capsule collider, a rigidbody, and a camera. Everything worked

Refit 6 not working when android project built with unity

I'm using Refit 6 in unity for rest calls but when project is built for Android getting below error. Message: MissingMethodException: Constructor on type 'Refit

What does the "RayPerceptionSensore3D" compocent observe?

I'm just learning about Unity ML-agent. Does the "RayPerceptionSensor3D" component observe only tags and positions that have been hit by rays? Then, is it the s

Accessing namespace from another namespace. Is it an assembly issue? A Monobehavior issue? Syntax issue?

I'm trying to put an inventory management system (Devion Games from Unity's asset store) into the Ellen 3d Gamekit project (Also from Unity). The problem I'm fa

How to know if a support library already supports AndroidX?

I have project in unity, that uses Mapbox, Mapbox includes the following support library: support-v4-25.1.0.aar This library comes as an .aar file and NOT as a

Unity-Android checking Export Project in android build settings causes Addressables issues

Im currently using Unity 2020.3.5f1, addressable ver 1.19.17 This is how im setting up my projects : building my addressables in Project A, and downloading and

Unity Tetris Game blocks sometimes not colliding

I am creating a version of Tetris which uses pentominoes instead of tetrominoes (5 square blocks instead of 4 square blocks). Some of the blocks will sometimes

Cant Jump and run at the same time (Unity)

wont let me run and jump at the same time, movement works fine but when i sprint jump isnt registered i tried a few things but nothing was successful the charac

Something goes weird with my decals when I change FOV

I'm on v2019.4.30f1, am using the old render pipeline (i.e. not urp nor hdrp) and using the blood decals from this pack: https://assetstore.unity.com/packages/v

Can't open unity projects on new laptop. 'No valid unity editor license found. Please activate your license.'

Hi, I sold my PC with hard reset, so no unity on that, I have another laptop with unity on it, signed into the same account. I bought this laptop, installed win

Audio not playing after calling .Play()

I have an AudioManager for my Game. When I try to play a clip on a NPC it doesn't get played. The script itself works because the background music is playing pr