Category "unity3d"

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

Black screen Unity AR Foundation - camera not working

Cannot use the camera for an AR Unity App. When launching the app on an iOS device, the screen is totally black. I'm running Unity version 2021.3

Why do certain sprites ,look as if they're further back in the window?

I am learning how to make games using unity, i have used free sprite packs from unity's store. i have selected each individual sprite and changed its z position

Can Unity handle perfectly multiple render of differents sizes of the same picture?

If I have two pictures slots in my game, one displayed as an icon and one displayed as the full image. Should I have two differents pictures in my Resources fol

Unity3D New Input System: Is it really so hard to stop UI clickthroughs (or figure out if cursor is over a UI object)?

Even the official documentation has borderline insane recommendations to solve what is probably one of the most common UI/3D interaction issues: If I click whil

check list of gameobject has active gameobject and insert into other list

i have a list of gameobject and I would like to check if each of those is currently active in the scene. The following is my code. foreach (GameObject hazard in

Animations problems c# unity

I've been trying to create a game on unity and while I was trying to do the animations I'm realizing that I don't have any idea why my code is not working. //An

Calibrating a gyroscope for different "flat" positions, then extracting x and y tilt

I have a top down 2D ball game like the old Labyrinth ball game. My game is played on a mobile phone. The user controls it by tilting the phone. The idea is tha

How do you fix this error: A namespace cannot directly contain members such as fields or methods [closed]

I am using unity code to make a game, and I get this error: "A namespace cannot directly contain members such as fields or methods." This is

Remote Machine IP disappears when entering Play Mode (Unity/Hololens)

I'm working with an XR Unity project (2019.4.26f1) and I'm trying to deploy it on the HoloLens 2. I've managed to build the project and to run it in the HL from

How to find where an object is located in a list?

i have a list "players" and i want to find if my player is players[0] or players[1] or whaterver. How do i do this?

Create A DLL to work on a solution targeting Master ARM64? (Hololens 2)

I develop applications targeting the Hololens 2 platform (mixed reality). The general idea of the application I am trying to build is using a point cloud regist

Slowmotion time limit

I made a player in my game, such that it goes into slow-motion when you hold down the space bar. But I want the player to only be available to be in slow-motion

Character is jittering after adding falling function

Let me just preface my question by saying I'm quite new to unity and programming as a whole. However I've been experimenting with some movement and after adding

How do you initialize reference type class properties in a nullable context in Unity?

As you are supposed to use the Start() or Awake() methods instead of the class constructors in Unity to initialize your class properties, VisualStudio complains

Sharing screenshot with link to facebook unity

I want to share a screenshot and link to Facebook. But I am not able to find anything, it seems Facebook has deprecated the functionalities. Correct me if I am